summaryrefslogtreecommitdiff
path: root/functions.sh
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2020-07-01 21:49:04 +0800
committerIru Cai <mytbk920423@gmail.com>2020-07-01 22:17:38 +0800
commit6a20507f950483f2adc68bab42a22bf5e7e8c683 (patch)
tree8e4ece37be471ec3383ba3d4c1b9d643de952947 /functions.sh
parent71417ab29ce8d47f20375aae656ff0b0f530a238 (diff)
downloadliveusb-builder-6a20507f950483f2adc68bab42a22bf5e7e8c683.tar.xz
replace "$ISOPATH/$ISOFILE" with "${ISO_FILEPATH}" in install_live
This is for metaiso install script in the future.
Diffstat (limited to 'functions.sh')
-rw-r--r--functions.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/functions.sh b/functions.sh
index c83d1d8..aae9089 100644
--- a/functions.sh
+++ b/functions.sh
@@ -110,15 +110,15 @@ download_iso() {
}
mount_iso() {
- LOOPDEV=$(/sbin/losetup -n -O NAME -j "$ISOPATH/$ISOFILE")
+ LOOPDEV=$(/sbin/losetup -n -O NAME -j "${ISO_FILEPATH}")
if [[ -n "$LOOPDEV" ]]
then
ISOMNT="$LOOPDEV"
umount_iso
fi
- udevil mount "$ISOPATH/$ISOFILE"
- LOOPDEV=$(/sbin/losetup -n -O NAME -j "$ISOPATH/$ISOFILE")
+ udevil mount "${ISO_FILEPATH}"
+ LOOPDEV=$(/sbin/losetup -n -O NAME -j "${ISO_FILEPATH}")
if [[ -n "$LOOPDEV" ]]
then
ISOMNT=$(findmnt -n -o TARGET "$LOOPDEV")