Invert the logic to only fail when we know for sure secure boot is on

This commit is contained in:
David Heinemeier Hansson
2025-10-07 13:01:22 +02:00
parent a38d80ee9f
commit 1ffed127db

View File

@@ -19,7 +19,7 @@ done
[ "$(uname -m)" != "x86_64" ] && abort "x86_64 CPU"
# Must have secure boot disabled
bootctl status 2>/dev/null | grep -q 'Secure Boot: disabled' || abort "Secure Boot disabled"
bootctl status 2>/dev/null | grep -q 'Secure Boot: enabled' && abort "Secure Boot disabled"
# Must not have Gnome or KDE already install
pacman -Qe gnome-shell &>/dev/null && abort "Fresh + Vanilla Arch"