Try to detect if the device specifier is valid.

This commit is contained in:
dak180 2018-04-15 22:33:54 -04:00
parent abfee5743d
commit 45ffcc8cbc
No known key found for this signature in database
GPG key ID: 6E2DC12780B8BB51

View file

@ -188,6 +188,9 @@ if [ -z "${driveID}" ]; then
echo "error: No Drive Device Specifier." 1>&2
dbUsage
exit 4
elif [ ! -e "/dev/${driveID}" ]; then
echo "error: Drive Device Specifier does not exist." 1>&2
exit 4
fi
#check if needed software is installed