From 4d62fb57b8f6772fb65dca5eaa77fc872a75add5 Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Sat, 18 Nov 2023 18:21:34 +0400 Subject: [PATCH] fix NO_REBOOT check in the presense of the "nounset" shell option --- nixos-infect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos-infect b/nixos-infect index 273f77e..f4eabd9 100755 --- a/nixos-infect +++ b/nixos-infect @@ -356,6 +356,6 @@ setupConf infect removeSwap -if [[ -z "$NO_REBOOT" ]]; then +if [[ -z "${NO_REBOOT+x}" ]]; then reboot fi