~jadedctrl/jam-xwx-moe

~jadedctrl/jam-xwx-moe/kaptĉapelo/push.sh
 ..
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 --recursive --delete --archive --verbose captcha/ $(whoami)@xwx.moe:/opt/kaptĉapelo/
8
9 if test "$RSYNC_DRYRUN" = "--dry-run"; then
10 echo "=================================================="
11 echo "Ran in --dry-run mode!"
12 echo "Try '$(basename "$0") --real' if the output seems OK."
13 echo "=================================================="
14 fi