浏览代码

Unmounting usb drive

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

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

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