mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
cleanup
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
934cfe12ba
commit
7cd5ad3f9a
|
@ -19,9 +19,9 @@ get_latest() {
|
||||||
local resp
|
local resp
|
||||||
resp=$(curl -sSL -H "${AUTH_HEADER}" -H "${API_HEADER}" "${URI}/repos/${repo}/releases")
|
resp=$(curl -sSL -H "${AUTH_HEADER}" -H "${API_HEADER}" "${URI}/repos/${repo}/releases")
|
||||||
local tag
|
local tag
|
||||||
tag=$(echo "$resp" | jq -e --raw-output .[0].tag_name)
|
tag=$(echo "$resp" | jq -e --raw-output .[0].tag_name || echo "null")
|
||||||
local name
|
local name
|
||||||
name=$(echo "$resp" | jq -e --raw-output .[0].name)
|
name=$(echo "$resp" | jq -e --raw-output .[0].name || echo "null")
|
||||||
|
|
||||||
if [[ "$tag" == "null" ]]; then
|
if [[ "$tag" == "null" ]]; then
|
||||||
# get the latest tag
|
# get the latest tag
|
||||||
|
|
Loading…
Reference in New Issue
Block a user