Skip to content

Commit 56147b0

Browse files
committed
fix: informative error on empty $TAG
1 parent 7655987 commit 56147b0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

setup/bin/setup

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ cp_v() {
3737
: "${ARCH:=$(uname -m)}"
3838
: "${TAG:=$(get_latest_tag_name)}"
3939

40+
if [[ -z "$TAG" ]]; then
41+
cat >&2 <<'EOM'
42+
Cannot determine latest tag: /releases/latest request failed
43+
44+
This usually means GitHub is having an intermittent outage. Try again, or
45+
specify an explicit tag input.
46+
47+
EOM
48+
49+
exit 1
50+
fi
51+
4052
dir="restyler-$OS-$ARCH"
4153
tgz="$dir.tar.gz"
4254
artifact="$REPO/releases/download/$TAG/$tgz"

0 commit comments

Comments
 (0)