Skip to content

Instantly share code, notes, and snippets.

@Ran-Xing
Last active May 9, 2022 17:55
Show Gist options
  • Select an option

  • Save Ran-Xing/251cb1d9edafc7e575533cd43e4b8ad7 to your computer and use it in GitHub Desktop.

Select an option

Save Ran-Xing/251cb1d9edafc7e575533cd43e4b8ad7 to your computer and use it in GitHub Desktop.
Choose Arch
#!/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;
@Ran-Xing
Copy link
Author

Ran-Xing commented Oct 30, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment