X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=8c988c906e20d743233c73faf44bd5a9bc0cf33f;hp=d191161f3b11f851066410341423583fad0d0aaf;hb=113919522ae7154266a547f747232d6c6f56785a;hpb=96c09943bc092ce76eadff272fb8c292f711c249 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