Skip to content

Commit

Permalink
Fix script returning early on no grep match
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Sep 22, 2023
1 parent dd84c79 commit 9d31086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/apps/nixos-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 9d31086

Please sign in to comment.