diff options
author | Jesse Bounds <jesse@rebounds.net> | 2017-03-01 15:23:36 -0800 |
---|---|---|
committer | Jesse Bounds <jesse@rebounds.net> | 2017-03-01 16:12:03 -0800 |
commit | 968bb369c9b578b48745d6c775c51503534a4f20 (patch) | |
tree | 944232172cb004f3314479361ed14beec167fb39 | |
parent | 4705019ae379b8e7676898b64e26ac840b2babd3 (diff) | |
download | qtlocation-mapboxgl-968bb369c9b578b48745d6c775c51503534a4f20.tar.gz |
[ios] Use curl to verify that a release is not publishedandroid-v5.0.0-beta.2
The previous incantation is now failing due to redirects. Getting only
the headers from curl and checkin the first line works reliably.
-rwxr-xr-x | platform/ios/scripts/deploy-packages.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/scripts/deploy-packages.sh b/platform/ios/scripts/deploy-packages.sh index 479803aa05..4a3c73295a 100755 --- a/platform/ios/scripts/deploy-packages.sh +++ b/platform/ios/scripts/deploy-packages.sh @@ -83,7 +83,7 @@ if [[ $( echo ${VERSION_TAG} | grep --invert-match ios-v ) ]]; then exit 1 fi -if [[ $( wget --spider -O- https://api.github.com/repos/${GITHUB_USER}/${GITHUB_REPO}/releases/tags/${VERSION_TAG} 2>&1 | grep -c "404 Not Found" ) == 0 ]]; then +if [[ $( curl --head https://api.github.com/repos/${GITHUB_USER}/${GITHUB_REPO}/releases/tags/${VERSION_TAG} | head -n 1 | grep -c "404 Not Found") == 0 ]]; then echo "Error: ${VERSION_TAG} has already been published on GitHub" echo "See: https://github.com/${GITHUB_USER}/${GITHUB_REPO}/releases/tag/${VERSION_TAG}" exit 1 |