diff --git a/nixos-infect b/nixos-infect index eaa35b7..be784e4 100755 --- a/nixos-infect +++ b/nixos-infect @@ -157,7 +157,7 @@ findESP() { prepareEnv() { isEFI=0 - [ -d /sys/firmware/efi ] || isEFI=1 + [ -d /sys/firmware/efi ] && isEFI=1 if ((isEFI)); then ESP="$(findESP)"