summary refs log tree commit diff
path: root/mklive.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-05-11 09:43:12 +0200
committerJuan RP <xtraeme@gmail.com>2014-05-11 09:43:12 +0200
commitb8062c9b45ebd0272174e3f148e3fc99a05a8dd3 (patch)
tree5fea5e9c05bed3b7a2f72bf911a3d3a26bba53d6 /mklive.sh.in
parent340c8107eefcf2ec90dced9c8b4aec17d3cd70dd (diff)
downloadhrmpf-b8062c9b45ebd0272174e3f148e3fc99a05a8dd3.tar.gz
hrmpf-b8062c9b45ebd0272174e3f148e3fc99a05a8dd3.tar.xz
hrmpf-b8062c9b45ebd0272174e3f148e3fc99a05a8dd3.zip
mklive: correctly set path to store the iso image.
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