Commit b1aa0624 by Natanael Copa Committed by Stéphane Graber

lxc-alpine: indent fixes

parent 8410c485
...@@ -136,41 +136,41 @@ optarg_check() { ...@@ -136,41 +136,41 @@ optarg_check() {
default_path=@LXCPATH@ default_path=@LXCPATH@
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
opt="$1" opt="$1"
shift shift
case "$opt" in case "$opt" in
-h|--help) -h|--help)
usage usage
exit 0 exit 0
;; ;;
-n|--name) -n|--name)
optarg_check $opt "$1" optarg_check $opt "$1"
name=$1 name=$1
shift shift
;; ;;
-p|--path) -p|--path)
optarg_check $opt "$1" optarg_check $opt "$1"
path=$1 path=$1
shift shift
;; ;;
--) --)
break;; break;;
--*=*) --*=*)
# split --myopt=foo=bar into --myopt foo=bar # split --myopt=foo=bar into --myopt foo=bar
set -- ${opt%=*} ${opt#*=} "$@" set -- ${opt%=*} ${opt#*=} "$@"
;; ;;
-?) -?)
usage_err "unknown option '$opt'" usage_err "unknown option '$opt'"
;; ;;
-*) -*)
# split opts -abc into -a -b -c # split opts -abc into -a -b -c
set -- $(echo "${opt#-}" | sed 's/\(.\)/ -\1/g') "$@" set -- $(echo "${opt#-}" | sed 's/\(.\)/ -\1/g') "$@"
;; ;;
*) *)
usage usage
exit 1 exit 1
;; ;;
esac esac
done done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment