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:
		@@ -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