Alternative drive option

This commit is contained in:
Bob Mottram 2017-06-23 20:36:09 +01:00
parent ff48df3dab
commit 548b5fc8b9
1 changed files with 5 additions and 1 deletions

View File

@ -80,7 +80,11 @@ do
;;
-d|--drive)
shift
GPG_USB_DRIVE=/dev/${1}1
if [[ "${1}" != '/dev/'* ]]; then
GPG_USB_DRIVE=/dev/${1}1
else
GPG_USB_DRIVE=${1}
fi
;;
*)
# unknown option