diff options
author | George Miller <George@livio.io> | 2022-08-04 14:30:06 -0400 |
---|---|---|
committer | George Miller <George@livio.io> | 2022-08-04 14:30:06 -0400 |
commit | 9af3238644735991e76a92480117f1d8fcae3cb3 (patch) | |
tree | 8126682e47f674c7186a465778703eb736e99408 | |
parent | f88f44fd046f65263755355e92861e0990f02d9f (diff) | |
download | sdl_ios-9af3238644735991e76a92480117f1d8fcae3cb3.tar.gz |
git pull error check
added a check to abort the script if the pull failed.
-rwxr-xr-x | scripts/release.sh | 8 |
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 |