0 |
#!/bin/sh |
1 |
|
2 |
RSYNC_DRYRUN="--dry-run" |
3 |
if test "$1" = "--real"; then |
4 |
RSYNC_DRYRUN="" |
5 |
fi |
6 |
|
7 |
rsync $RSYNC_DRYRUN -e "ssh -p 23" --recursive --delete --archive --verbose ../gemujo_ludo/ $(whoami)@192.168.254.54:/srv/minetest/.minetest/games/gemujo_ludo/ |
8 |
ssh -p 23 $(whoami)@192.168.254.54 ~/.local/bin/pretigi |
9 |
|
10 |
if test "$RSYNC_DRYRUN" = "--dry-run"; then |
11 |
echo "==================================================" |
12 |
echo "Ran in --dry-run mode!" |
13 |
echo "Try '$(basename "$0") --real' if the output seems OK." |
14 |
echo "==================================================" |
15 |
fi |