Last active
May 9, 2022 17:55
-
-
Save Ran-Xing/251cb1d9edafc7e575533cd43e4b8ad7 to your computer and use it in GitHub Desktop.
Choose Arch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ARCH="$(arch)" | |
| case "$ARCH" in | |
| 'x86_64') | |
| export ARCH='amd64';echo $ARCH;; | |
| 'aarch64') \ | |
| export ARCH='arm64';echo $ARCH;; | |
| 'i386') \ | |
| export ARCH='i386';echo $ARCH;; | |
| esac; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
test=$(curl https://gist.githubusercontent.com/Ran-Xing/251cb1d9edafc7e575533cd43e4b8ad7/raw/1b6444c1f85a9d62bcf27e8ad945ce6f6d86e31c/choose_arch.sh | bash)
echo $test