diff --git a/src/freedombone-utils-keys b/src/freedombone-utils-keys index 9aecaae5..0fff17e6 100755 --- a/src/freedombone-utils-keys +++ b/src/freedombone-utils-keys @@ -147,7 +147,9 @@ function interactive_gpg_from_usb { fi fi - backup_unmount_drive ${USB_DRIVE} + if [ -d $USB_MOUNT ]; then + backup_unmount_drive ${USB_DRIVE} + fi if [[ $GPG_LOADING == "yes" ]]; then dialog --title $"Recover Encryption Keys" \ --msgbox $"Now remove the USB drive. Insert the next drive containing a key fragment, or select Ok to finish" 6 70