From a2c59b9e79efad7fc44c621ef72a78943009ee91 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 27 Oct 2016 15:25:09 +0100 Subject: [PATCH] Unmounting usb drive --- src/freedombone-utils-keys | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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