Had to change -d flag to -f as I forgot disks are considered special files

This commit is contained in:
Tristan Ancelet 2023-11-10 16:06:11 -06:00
parent c0bc51e9a7
commit 6da855a05f

View File

@ -13,7 +13,7 @@ BOOT_METHOD="${BOOT_METHOD^^}"
}
DISK="${2:?"Disk was not provided"}"
[[ ! -d $DISK ]] && {
[[ ! -f $DISK ]] && {
echo "Your disk ($DISK) does not exist. Please provide a valid one"
exit
}