Skip to content

Commit

Permalink
bugfixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Frigo committed Sep 19, 2023
1 parent 1e64025 commit 8f77184
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,19 @@ list_all_versions() {

get_arch_and_environment() {
local -r environment=$(uname | tr '[:upper:]' '[:lower:]')

case $environment in
darwin*)
echo "$(arch)"-apple-"$environment"
;;
linux*)
local -r arch=$(arch)

if [[ $environment == "darwin" ]]; then
if [[ $arch != "x86_64" ]] && [[ $arch != "aarch64" ]]; then
echo "$(arch)"-apple-"$environment"
else
echo "macos-universal"
fi
elif [[ $environment == "linux" ]]; then
echo "$(arch)"-unknown-"$environment"
;;
*)
else
fail "unknown environment brand for $environment"
;;
esac
fi
}

get_release_name() {
Expand Down

0 comments on commit 8f77184

Please sign in to comment.