fix switch-to-configuration boot exit code check
continuous-integration/drone/push Build is failing Details

hetzner-flakes
Alexander Tomokhov 2023-11-18 17:43:36 +04:00
parent 4c0072fa7c
commit c51aece2b9
1 changed files with 1 additions and 1 deletions

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
}