update latest versions script

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-01-01 16:22:06 -05:00
parent 35412e397f
commit 198c76d938
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

View File

@ -24,6 +24,7 @@ get_latest() {
# get the latest tag
local resp=$(curl -sSL -H "${AUTH_HEADER}" -H "${API_HEADER}" "${URI}/repos/${repo}/tags")
local tag=$(echo $resp | jq -e --raw-output .[0].name)
tag=${tag#release-}
fi
if [[ "$name" == "null" ]] || [[ "$name" == "" ]]; then