Make sure variable ISO is unset variable if not used
[grml-debootstrap.git] / grml-debootstrap
index d191161..8c988c9 100755 (executable)
@@ -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