From 8c4831cd2cd58a2fe282a230dabad313c727eeec Mon Sep 17 00:00:00 2001 From: William Robinet Date: Tue, 11 Jun 2019 10:47:32 +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 6d0736c..3c36902 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