From 5e754006077e5eaf328a3abc6cdd94e9eeeb692d Mon Sep 17 00:00:00 2001 From: William Robinet Date: Tue, 11 Jun 2019 10:46:52 +0200 Subject: [PATCH] Add return code check after git pull --- scripts/update-all.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/update-all.sh b/scripts/update-all.sh index 72a4b51..9588113 100755 --- a/scripts/update-all.sh +++ b/scripts/update-all.sh @@ -61,6 +61,11 @@ fi $gitcommand pull +if [ $? != 0 ]; then + echo "A problem occurred while retrieving remote files from repository." + exit 1 +fi + composercommand=`command -v composer` if [[ -z "$composercommand" ]]; then if [[ ! -f "composer.phar" ]]; then