Skip to content

Commit

Permalink
feat: adds support for M1 macbooks to curl installer
Browse files Browse the repository at this point in the history
  • Loading branch information
EverlastingBugstopper committed Feb 19, 2021
1 parent d46d1c6 commit 3720de9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/_installer/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ get_architecture() {
fi
fi

if [ "$_ostype" = Darwin -a "$_cputype" = arm64 ]; then
# Darwin `uname -s` doesn't seem to lie on Big Sur
# but we want to serve x86_64 binaries anyway that they can
# then run in x86_64 emulation mode on their arm64 devices
local _cputype=x86_64
fi

case "$_ostype" in
Linux)
local _ostype=unknown-linux-musl
Expand Down

0 comments on commit 3720de9

Please sign in to comment.