From ae1241c0b222bc33bb145ea2822eb69ae310b74d Mon Sep 17 00:00:00 2001 From: Bruce Potter Date: Thu, 31 Oct 2013 12:57:33 -0400 Subject: [PATCH] add check for git pull success to build script --- buildcore.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/buildcore.sh b/buildcore.sh index c72d36000..eab35eda4 100755 --- a/buildcore.sh +++ b/buildcore.sh @@ -183,6 +183,11 @@ if [ "$GIT" = "1" ]; then # using git GITUP=../coregitup echo "git pull > $GITUP" git pull > $GITUP + if [[ $? != 0 ]]; then + # do not continue so we do not build with old files + echo "The 'git pull' command failed. Exiting the build." + exit 3 + fi fi if ! $GREP 'Already up-to-date' $GITUP; then SOMETHINGCHANGED=1