From: Simon Ruderich Date: Sat, 9 Feb 2013 20:08:54 +0000 (+0100) Subject: bin/srsync-incremental: Add set -e. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=eb6bc786f279dce74d397ae59639fc14b7a98d5c;p=config%2Fdotfiles.git bin/srsync-incremental: Add set -e. --- 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