Skip to content
Snippets Groups Projects
Verified Commit 82a22fe9 authored by Julian Ospald's avatar Julian Ospald :tea:
Browse files

Merge branch 'darwin-arch'

parents ff8865c5 dbadcf18
No related branches found
No related tags found
1 merge request!228Fix arch detection on macos
Pipeline #44704 passed
......@@ -240,7 +240,9 @@ download_ghcup() {
_url=${base_url}/${ghver}/x86_64-freebsd${freebsd_ver}-ghcup-${ghver}
;;
"Darwin"|"darwin")
case "${arch}" in
# uname -m and arch seem to behave different under rosetta
# https://superuser.com/questions/835514/why-do-uname-p-and-uname-m-and-arch-output-different-architectures
case "$(arch)" in
x86_64|amd64)
_url=${base_url}/${ghver}/x86_64-apple-darwin-ghcup-${ghver}
;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment