summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGeorge Miller <George@livio.io>2022-08-04 14:30:06 -0400
committerGeorge Miller <George@livio.io>2022-08-04 14:30:06 -0400
commit9af3238644735991e76a92480117f1d8fcae3cb3 (patch)
tree8126682e47f674c7186a465778703eb736e99408 /scripts
parentf88f44fd046f65263755355e92861e0990f02d9f (diff)
downloadsdl_ios-9af3238644735991e76a92480117f1d8fcae3cb3.tar.gz
git pull error check
added a check to abort the script if the pull failed.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/release.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/release.sh b/scripts/release.sh
index d6ffc338f..fd66a86ea 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -75,8 +75,14 @@ else
fi
# Do a pull to make sure we are up to date.
- git pull --ff
+ pull_response=$(git pull --ff)
+ # Check that the pull was successful If we did not get a response, then we know the pull failed.
+ if [ -z "$pull_response" ]; then
+ echo "git pull for automatic checkout has failed. Abort."
+ exit 0
+ fi
+
# Now do the checkout
git checkout $develop_branch