fix switch-to-configuration boot exit code check

This commit is contained in:
Alexander Tomokhov 2023-11-18 17:43:36 +04:00
parent 4c0072fa7c
commit c51aece2b9

View file

@ -337,7 +337,7 @@ infect() {
fi
echo "make configuration boot by default..."
if /nix/var/nix/profiles/system/bin/switch-to-configuration boot; then
if ! /nix/var/nix/profiles/system/bin/switch-to-configuration boot; then
echo "Failed!"; exit 1
fi
}