Skip to content

Commit

Permalink
add fail for not supported platform
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Schaller <ivan@schaller.sh>
  • Loading branch information
olofvndrhr committed Sep 4, 2024
1 parent 93771e1 commit 3f907ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ function get_platform() {
"Darwin")
platform="apple-darwin"
;;
*)
fail "This platform is currently not supported"
;;
esac

case "$(uname -m)" in
Expand All @@ -60,6 +63,9 @@ function get_platform() {
arch="armv7"
platform=unknown-linux-musleabihf
;;
*)
fail "This platform is currently not supported"
;;
esac

echo -n "${arch}-${platform}"
Expand Down

0 comments on commit 3f907ee

Please sign in to comment.