From 38eacf712150d58a1fcdc376d3143ded0e27ab90 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 19 Jul 2019 19:58:39 +0200 Subject: [PATCH] - helpers: exit on error --- helpers/get-git-source.sh | 3 +++ helpers/get-svn-source.sh | 3 +++ 2 files changed, 6 insertions(+) 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