X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=bin%2Fsrsync-incremental;h=909c028802032b5679321c7dcc53e0a83518c1a2;hb=9b975c15a2b8ab40b76e4f3922b43df1ec2c149c;hp=9ebf41949518ba541d2ee6cdedce24b38b2a44d0;hpb=392f7c624686e93ed5236648a612717d8c469c73;p=config%2Fdotfiles.git diff --git a/bin/srsync-incremental b/bin/srsync-incremental index 9ebf419..909c028 100755 --- a/bin/srsync-incremental +++ b/bin/srsync-incremental @@ -21,6 +21,8 @@ # along with this program. If not, see . +set -e + if test "$#" -lt 2; then echo "Usage: $0 " >&2 echo @@ -28,6 +30,7 @@ if test "$#" -lt 2; then exit 2 fi + cd "$1" || exit 1 shift