We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b72f638 commit 0b2c844Copy full SHA for 0b2c844
bin/install
@@ -73,12 +73,21 @@ EOS
73
get_download_url_for_version() {
74
local version=$1
75
76
- # if version is a release number, prepend OTP-
77
- if [[ "$version" =~ ^[0-9]+\.* ]]; then
78
- version="OTP-${version}"
79
- fi
80
-
81
- echo "https://github.com/erlef/otp_builds/releases/download/${version}/otp-aarch64-apple-darwin.tar.gz"
+ case "${version}" in
+ master|maint*)
+ ref="${version}-latest"
+ ;;
+ *)
+ ref="OTP-${otp_version}"
82
83
+ esac
84
+
85
+ case $(uname -m) in
86
+ "x86_64") arch=x86_64 ;;
87
+ "arm64") arch=aarch64 ;;
88
89
90
+ echo "https://github.com/erlef/otp_builds/releases/download/${ref}/otp-${arch}-apple-darwin.tar.gz"
91
}
92
93
0 commit comments