From 6a20507f950483f2adc68bab42a22bf5e7e8c683 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Wed, 1 Jul 2020 21:49:04 +0800 Subject: replace "$ISOPATH/$ISOFILE" with "${ISO_FILEPATH}" in install_live This is for metaiso install script in the future. --- functions.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'functions.sh') 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") -- cgit v1.2.3