[lxc-devel] [PATCH 2/5] lxc-alpine: indent fixes
Natanael Copa
ncopa at alpinelinux.org
Mon Dec 31 19:49:16 UTC 2012
Signed-off-by: Natanael Copa <ncopa at alpinelinux.org>
---
templates/lxc-alpine.in | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in
index 6f7c90d..7787e75 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
--
1.8.0.3
More information about the lxc-devel
mailing list