add check for git pull success to build script

This commit is contained in:
Bruce Potter 2013-10-31 12:57:33 -04:00
parent c627c320bf
commit 039fac937d

View File

@ -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