]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
bin/srsync-incremental: Add set -e.
authorSimon Ruderich <simon@ruderich.org>
Sat, 9 Feb 2013 20:08:54 +0000 (21:08 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sat, 9 Feb 2013 20:52:28 +0000 (21:52 +0100)
bin/srsync-incremental

index 9ebf41949518ba541d2ee6cdedce24b38b2a44d0..909c028802032b5679321c7dcc53e0a83518c1a2 100755 (executable)
@@ -21,6 +21,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
+set -e
+
 if test "$#" -lt 2; then
     echo "Usage: $0 <backups-directory> <arguments to rsync>" >&2
     echo
@@ -28,6 +30,7 @@ if test "$#" -lt 2; then
     exit 2
 fi
 
+
 cd "$1" || exit 1
 shift