Had to change -d flag to -f as I forgot disks are considered special files
This commit is contained in:
parent
c0bc51e9a7
commit
6da855a05f
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user