Skip to content

Commit

Permalink
install.sh: Check for Intel Macs and show a nicer diagnostic
Browse files Browse the repository at this point in the history
Signed-off-by: Hector Martin <marcan@marcan.st>
  • Loading branch information
marcan committed Mar 21, 2022
1 parent 32012d8 commit bc29c7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ export PATH="$PWD/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH"

arch=

if ! arch -arm64 true 2>/dev/null; then
echo
echo "Looks like this is an Intel Mac!"
echo "Sorry, Asahi Linux only supports Apple Silicon machines."
echo "May we interest you in https://t2linux.org/ instead?"
exit 1
fi

if [ $(arch) != "arm64" ]; then
echo
echo "You're running the installer in Intel mode under Rosetta!"
Expand Down

0 comments on commit bc29c7b

Please sign in to comment.