Skip to content

Commit bc29c7b

Browse files
committed
install.sh: Check for Intel Macs and show a nicer diagnostic
Signed-off-by: Hector Martin <[email protected]>
1 parent 32012d8 commit bc29c7b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/install.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ export PATH="$PWD/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
1414

1515
arch=
1616

17+
if ! arch -arm64 true 2>/dev/null; then
18+
echo
19+
echo "Looks like this is an Intel Mac!"
20+
echo "Sorry, Asahi Linux only supports Apple Silicon machines."
21+
echo "May we interest you in https://t2linux.org/ instead?"
22+
exit 1
23+
fi
24+
1725
if [ $(arch) != "arm64" ]; then
1826
echo
1927
echo "You're running the installer in Intel mode under Rosetta!"

0 commit comments

Comments
 (0)