diff --git a/helpers/get-git-source.sh b/helpers/get-git-source.sh index a169759d..470a40d8 100755 --- a/helpers/get-git-source.sh +++ b/helpers/get-git-source.sh @@ -12,6 +12,9 @@ GIT_URL="$1" DEST="$2" +# exit on error +set -e + if [ -d $DEST ]; then cd $DEST git pull || true diff --git a/helpers/get-svn-source.sh b/helpers/get-svn-source.sh index e5a36717..d81ea5fb 100755 --- a/helpers/get-svn-source.sh +++ b/helpers/get-svn-source.sh @@ -12,6 +12,9 @@ SVN_URL="$1" DEST="$2" +# exit on error +set -e + if [ -d $DEST ]; then cd $DEST svn update || true