From: Natanael Copa Date: Mon, 31 Dec 2012 19:49:16 +0000 (+0100) Subject: lxc-alpine: indent fixes X-Git-Tag: lxc-0.9.0.alpha3~1^2~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1aa0624bae5a81d6f6bbc2653a388d148cffef8;p=thirdparty%2Flxc.git lxc-alpine: indent fixes Signed-off-by: Natanael Copa Acked-by: Stéphane Graber --- diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in index 6f7c90dad..7787e757c 100644 --- a/templates/lxc-alpine.in +++ b/templates/lxc-alpine.in @@ -136,41 +136,41 @@ optarg_check() { default_path=@LXCPATH@ while [ $# -gt 0 ]; do - opt="$1" - shift - case "$opt" in - -h|--help) + opt="$1" + shift + case "$opt" in + -h|--help) usage exit 0 ;; - -n|--name) + -n|--name) optarg_check $opt "$1" name=$1 shift ;; - -p|--path) + -p|--path) optarg_check $opt "$1" path=$1 shift ;; - --) + --) break;; - --*=*) - # split --myopt=foo=bar into --myopt foo=bar - set -- ${opt%=*} ${opt#*=} "$@" + --*=*) + # split --myopt=foo=bar into --myopt foo=bar + set -- ${opt%=*} ${opt#*=} "$@" ;; - -?) + -?) usage_err "unknown option '$opt'" ;; - -*) + -*) # split opts -abc into -a -b -c set -- $(echo "${opt#-}" | sed 's/\(.\)/ -\1/g') "$@" ;; - *) + *) usage exit 1 ;; - esac + esac done