X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=8c988c906e20d743233c73faf44bd5a9bc0cf33f;hp=d191161f3b11f851066410341423583fad0d0aaf;hb=95c53148996947a471d774587fe85bf8d4928a89;hpb=e0dc9b488cbc741b30f6657c7605cf4725401aa4 diff --git a/grml-debootstrap b/grml-debootstrap index d191161..8c988c9 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -161,13 +161,15 @@ else fi # make sure we have the right syntax when using an iso image -case $ISO in - file*) # do nothing - ;; - *) - ISO=file:$1 - ;; -esac +if [ -n "$ISO" ] ; then + case $ISO in + file*) # do nothing + ;; + *) + ISO=file:$1 + ;; + esac +fi ISODIR=${ISO##file:} ISODIR=${ISODIR%%/} @@ -439,4 +441,4 @@ else fi ## END OF FILE ################################################################# -# vim: ai tw=100 expandtab foldmethod=marker +# vim: ai tw=100 expandtab foldmethod=marker shiftwidth=3