Had to fix it YET again. I didn't realize that bash had -b to verify if something is a block device
This commit is contained in:
parent
6da855a05f
commit
2133dd9d47
@ -13,7 +13,7 @@ BOOT_METHOD="${BOOT_METHOD^^}"
|
||||
}
|
||||
|
||||
DISK="${2:?"Disk was not provided"}"
|
||||
[[ ! -f $DISK ]] && {
|
||||
[[ ! -b $DISK ]] && {
|
||||
echo "Your disk ($DISK) does not exist. Please provide a valid one"
|
||||
exit
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user