浏览代码

Unmounting usb drive

Bob Mottram 8 年前
父节点
当前提交
a2c59b9e79
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      src/freedombone-utils-keys

+ 3
- 1
src/freedombone-utils-keys 查看文件

@@ -147,7 +147,9 @@ function interactive_gpg_from_usb {
147 147
             fi
148 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 153
         if [[ $GPG_LOADING == "yes" ]]; then
152 154
             dialog --title $"Recover Encryption Keys" \
153 155
                    --msgbox $"Now remove the USB drive. Insert the next drive containing a key fragment, or select Ok to finish" 6 70