Skip to content

Commit c633a2b

Browse files
committed
bootstrap: Check for non-macOS
Fixes: #212 Signed-off-by: Hector Martin <[email protected]>
1 parent 83cb10e commit c633a2b

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

scripts/bootstrap-dev.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
if true; then
66
set -e
77

8+
if [ ! -e /System ]; then
9+
echo "You appear to be running this script from Linux or another non-macOS system."
10+
echo "Asahi Linux can only be installed from macOS (or recoveryOS)."
11+
exit 1
12+
fi
13+
814
export LC_ALL=en_US.UTF-8
915
export LANG=en_US.UTF-8
1016
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:$PATH"

scripts/bootstrap-prod.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
if true; then
66
set -e
77

8+
if [ ! -e /System ]; then
9+
echo "You appear to be running this script from Linux or another non-macOS system."
10+
echo "Asahi Linux can only be installed from macOS (or recoveryOS)."
11+
exit 1
12+
fi
13+
814
export LC_ALL=en_US.UTF-8
915
export LANG=en_US.UTF-8
1016
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:$PATH"

scripts/bootstrap.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
if true; then
66
set -e
77

8+
if [ ! -e /System ]; then
9+
echo "You appear to be running this script from Linux or another non-macOS system."
10+
echo "Asahi Linux can only be installed from macOS (or recoveryOS)."
11+
exit 1
12+
fi
13+
814
export LC_ALL=en_US.UTF-8
915
export LANG=en_US.UTF-8
1016
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:$PATH"

0 commit comments

Comments
 (0)