From c1ba5f5041e38681a95ad1bcff2e17f2b3e2fbad Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Mon, 24 Sep 2018 20:08:27 -0400 Subject: [PATCH] cleanup Signed-off-by: Jess Frazelle --- latest-versions.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/latest-versions.sh b/latest-versions.sh index e562be8..9f8e3fb 100755 --- a/latest-versions.sh +++ b/latest-versions.sh @@ -1,7 +1,5 @@ #!/bin/bash # This script gets the latest GitHub releases for the specified projects. -set -e -set -o pipefail if [[ -z "$GITHUB_TOKEN" ]]; then echo "Set the GITHUB_TOKEN env variable." @@ -19,9 +17,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 || echo "null") + tag=$(echo "$resp" | jq -e --raw-output .[0].tag_name) local name - name=$(echo "$resp" | jq -e --raw-output .[0].name || echo "null") + name=$(echo "$resp" | jq -e --raw-output .[0].name) if [[ "$tag" == "null" ]]; then # get the latest tag