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:
1 parent
6da855a05f
commit
2133dd9d47
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user