X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=bin%2Fsrsync-incremental;h=0ae1e56c208e562b839628862e11ab32bb2fcc19;hb=4f7b2f8b413a236e0e310cfa8f4c7e05cca30ec8;hp=7fe898aa5d058ff46ac7e03fc97e01f8f585f586;hpb=b0d6984392f748d7e4ba2064e379e6d8d4d11180;p=config%2Fdotfiles.git
diff --git a/bin/srsync-incremental b/bin/srsync-incremental
index 7fe898a..0ae1e56 100755
--- a/bin/srsync-incremental
+++ b/bin/srsync-incremental
@@ -21,7 +21,7 @@
# along with this program. If not, see .
-set -e
+set -eu
if test "$#" -lt 2; then
echo "Usage: $0 " >&2
@@ -31,7 +31,7 @@ if test "$#" -lt 2; then
fi
-cd "$1" || exit 1
+cd "$1"
shift
# Get absolute path to last backup directory.