From 7cd5ad3f9a81bfc97eeae2513b9ae9b274f608ae Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Mon, 24 Sep 2018 20:05:05 -0400 Subject: [PATCH] cleanup Signed-off-by: Jess Frazelle --- latest-versions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/latest-versions.sh b/latest-versions.sh index 2376313..e562be8 100755 --- a/latest-versions.sh +++ b/latest-versions.sh @@ -19,9 +19,9 @@ get_latest() { local resp resp=$(curl -sSL -H "${AUTH_HEADER}" -H "${API_HEADER}" "${URI}/repos/${repo}/releases") 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 - name=$(echo "$resp" | jq -e --raw-output .[0].name) + name=$(echo "$resp" | jq -e --raw-output .[0].name || echo "null") if [[ "$tag" == "null" ]]; then # get the latest tag