summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2016-08-10 20:36:36 +0800
committerIru Cai <mytbk920423@gmail.com>2016-08-10 20:36:36 +0800
commita8dceef3fe552a90578e033eceb21390f785cb83 (patch)
treeaf75b9b9ddb3e2dbe3407ba2976fa75eebbedc92
parent204e6786b2e4633982560c8cb590e8ae7d7c9fa6 (diff)
downloadliveusb-builder-a8dceef3fe552a90578e033eceb21390f785cb83.tar.xz
try to umount first if the iso mount point is mounted
-rw-r--r--functions.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions.sh b/functions.sh
index 8af5f07..65bf6fb 100644
--- a/functions.sh
+++ b/functions.sh
@@ -65,6 +65,10 @@ download_iso() {
}
mount_iso() {
+ if findmnt "$ISOMNT" > /dev/null
+ then
+ umount_iso
+ fi
udevil mount "isofiles/$ISOFILE" "$ISOMNT"
}