Skip to content

Commit

Permalink
workaround to use amd64 binary for apple m1 until go supports darwin_…
Browse files Browse the repository at this point in the history
…arm64 natively
  • Loading branch information
danenania committed Feb 2, 2021
1 parent 2b21f54 commit f4e1df6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ else
ARCH="386"
fi

# workaround to use amd64 binary for apple m1 until go supports darwin_arm64 natively
if [ $PLATFORM == "darwin" ] && [ $ARCH == "arm64" ]; then
ARCH="amd64"
fi

if [[ "$(cat /proc/1/cgroup 2> /dev/null | grep docker | wc -l)" > 0 ]] || [ -f /.dockerenv ]; then
IS_DOCKER=true
else
Expand All @@ -49,7 +54,7 @@ rm .ek_tmp_version

welcome_envkey () {
echo "envkey-source $VERSION Quick Install"
echo "Copyright (c) 2020 Envkey Inc. - MIT License"
echo "Copyright (c) 2021 Envkey Inc. - MIT License"
echo "https://github.com/envkey/envkey-source"
echo ""
}
Expand Down

0 comments on commit f4e1df6

Please sign in to comment.