diff --git a/lib/apps/nixos-install.sh b/lib/apps/nixos-install.sh index 2d7ee33f..baf39a3a 100644 --- a/lib/apps/nixos-install.sh +++ b/lib/apps/nixos-install.sh @@ -32,7 +32,7 @@ echo '4' } echo '5' -NUM_NVME_DISKS=$(echo "${DISK}" | grep "^/dev/nvme" -c) +NUM_NVME_DISKS=$(echo "${DISK}" | grep "^/dev/nvme" -c || echo 0) readonly NUM_NVME_DISKS echo '6'