X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=7de9a27f84cd8252391fd6b0f7c7af33a95f2a2f;hp=d191161f3b11f851066410341423583fad0d0aaf;hb=1d96c75de3b55216d85c13c409e70c493f83c813;hpb=96c09943bc092ce76eadff272fb8c292f711c249 diff --git a/grml-debootstrap b/grml-debootstrap index d191161..7de9a27 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -4,13 +4,13 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Sam Okt 06 18:01:53 CEST 2007 [mika] +# Latest change: Mit Mär 26 22:44:03 CET 2008 [mika] ################################################################################ # http://www.debian.org/releases/stable/i386/index.html.en set -e # exit on any error -VERSION='0.11' +VERSION='0.17' # source core functions {{{ . /etc/grml/lsb-functions @@ -77,7 +77,7 @@ while [ "$#" -gt "0" ] ; do shift GROOT=$1 ;; - --release) + -r|--release) shift RELEASE=$1 ;; @@ -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