fix possible syntax error in failure path
authorThorsten Glaser <tg@mirbsd.org>
Wed, 1 Dec 2010 21:10:28 +0000 (21:10 +0000)
committerMichael Prokop <mika@grml.org>
Wed, 1 Dec 2010 21:15:51 +0000 (22:15 +0100)
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
grml-live

index 151e464..692fffb 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -1093,7 +1093,7 @@ else
            sed -n '/^.*\[ *\([0-9]*\)[] ].*  ISOLINUX.BIN;1 *$/s//\1/p')
          if ! [ -r boot/grub/core.img ] ; then
            ewarn "boot/grub/core.img not found, not creating manifold boot ISO file"
            sed -n '/^.*\[ *\([0-9]*\)[] ].*  ISOLINUX.BIN;1 *$/s//\1/p')
          if ! [ -r boot/grub/core.img ] ; then
            ewarn "boot/grub/core.img not found, not creating manifold boot ISO file"
-         elif [ $bootoff -lt 1 ] ; then
+         elif [ "${bootoff:-0}" -lt 1 ] ; then
            ewarn "isolinux.bin not found on the ISO file, disabling manifold boot"
          else
            log "Creating hybrid ISO file with manifold method"
            ewarn "isolinux.bin not found on the ISO file, disabling manifold boot"
          else
            log "Creating hybrid ISO file with manifold method"