Testing curl call

This commit is contained in:
Michael Tryby
2019-03-07 08:40:37 -05:00
parent fbaf2d7d02
commit d0633515cc

View File

@@ -63,7 +63,7 @@ SUT_PATH=(`find $BUILD_HOME -name "bin" -type d`)
# determine latest tag from GitHub API # determine latest tag from GitHub API
LATEST_URL="https://api.github.com/repos/openwateranalytics/epanet-example-networks/releases/latest" LATEST_URL="https://api.github.com/repos/openwateranalytics/epanet-example-networks/releases/latest"
LATEST_TAG=(`curl --silent ${LATEST_URL} | jq -r .tag_name`) LATEST_TAG=(`curl ${LATEST_URL} | jq -r .tag_name`)
if [ ${LATEST_TAG} == 'null' ]; then if [ ${LATEST_TAG} == 'null' ]; then
echo "ERROR: curl | jq - ${LATEST_URL}" echo "ERROR: curl | jq - ${LATEST_URL}"
exit 1 exit 1