Browse Source

Unmounting usb drive

Bob Mottram 8 years ago
parent
commit
a2c59b9e79
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/freedombone-utils-keys

+ 3
- 1
src/freedombone-utils-keys View File

147
             fi
147
             fi
148
         fi
148
         fi
149
 
149
 
150
-        backup_unmount_drive ${USB_DRIVE}
150
+        if [ -d $USB_MOUNT ]; then
151
+            backup_unmount_drive ${USB_DRIVE}
152
+        fi
151
         if [[ $GPG_LOADING == "yes" ]]; then
153
         if [[ $GPG_LOADING == "yes" ]]; then
152
             dialog --title $"Recover Encryption Keys" \
154
             dialog --title $"Recover Encryption Keys" \
153
                    --msgbox $"Now remove the USB drive. Insert the next drive containing a key fragment, or select Ok to finish" 6 70
155
                    --msgbox $"Now remove the USB drive. Insert the next drive containing a key fragment, or select Ok to finish" 6 70