about summary refs log tree commit diff
path: root/mklive.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'mklive.sh.in')
-rw-r--r--mklive.sh.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/mklive.sh.in b/mklive.sh.in
index 3456436..74694d7 100644
--- a/mklive.sh.in
+++ b/mklive.sh.in
@@ -245,7 +245,7 @@ generate_iso_image() {
         -no-emul-boot -boot-load-size 4 -boot-info-table \
         -eltorito-alt-boot -e boot/grub/efiboot.img -isohybrid-gpt-basdat -no-emul-boot \
         -isohybrid-mbr $SYSLINUX_DATADIR/isohdpfx.bin \
-        -output "$OUTPUT_FILE" "$BUILDDIR" >>$LOGFILE 2>&1
+        -output "$CURDIR/$OUTPUT_FILE" "$BUILDDIR" >>$LOGFILE 2>&1
 }
 
 #
@@ -328,6 +328,8 @@ if [ "$(id -u)" -ne 0 ]; then
     exit 1
 fi
 
+readonly CURDIR="$PWD"
+
 ISO_VOLUME="VOID_LIVE"
 if [ -n "$ROOTDIR" ]; then
     BUILDDIR=$(mktemp --tmpdir="$ROOTDIR" -d)
@@ -416,7 +418,7 @@ generate_iso_image
 info_msg "[7/7] Removing build directory..."
 rm -rf "$BUILDDIR"
 
-hsize=$(du -sh "$OUTPUT_FILE"|awk '{print $1}')
-info_msg "Created $(readlink -f $OUTPUT_FILE) ($hsize) successfully."
+hsize=$(du -sh "$CURDIR/$OUTPUT_FILE"|awk '{print $1}')
+info_msg "Created $(readlink -f $CURDIR/$OUTPUT_FILE) ($hsize) successfully."
 
 exit 0