From eb6bc786f279dce74d397ae59639fc14b7a98d5c Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 9 Feb 2013 21:08:54 +0100 Subject: [PATCH] bin/srsync-incremental: Add set -e. --- bin/srsync-incremental | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.44.1