Skip to content

Commit

Permalink
feat(installer): warn about unsupported arch
Browse files Browse the repository at this point in the history
  • Loading branch information
SKalt authored Sep 27, 2021
1 parent 1c28ece commit ca10e39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/download_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ main() {
version="$(json_values 'tag_name' < $resp)";
echo "version=$version"
echo "name=$name"

if [ -z "${name:-}" ]; then
echo "unfortunately, there's no prebuilt release for $fmt and $arch" >&2;
echo 'try `go get github.com/skalt/git-cc` to compile it yourself.' >&2;
exit 1;
fi
curl -sLO "$(dl_url "$version" "$name")"
check_sha256
}
Expand Down

0 comments on commit ca10e39

Please sign in to comment.