From c51aece2b9e0fbd9d81f966b6facb8f40b7e0e3c Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Sat, 18 Nov 2023 17:43:36 +0400 Subject: [PATCH] fix switch-to-configuration boot exit code check --- nixos-infect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos-infect b/nixos-infect index c2d0a91..273f77e 100755 --- a/nixos-infect +++ b/nixos-infect @@ -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 }