Browse Source

Exit on error

Samuel W. Flint 5 years ago
parent
commit
05da08988c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      git-sync

+ 2 - 0
git-sync

@@ -1,5 +1,7 @@
 #!/bin/sh
 #!/bin/sh
 
 
+set -e
+
 if ! GITDIR=$(git rev-parse --git-dir) ; then
 if ! GITDIR=$(git rev-parse --git-dir) ; then
     echo "Not in a git repository" >&2
     echo "Not in a git repository" >&2
     exit 0
     exit 0