]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-alpine: indent fixes
authorNatanael Copa <ncopa@alpinelinux.org>
Mon, 31 Dec 2012 19:49:16 +0000 (20:49 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 2 Jan 2013 18:05:23 +0000 (13:05 -0500)
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-alpine.in

index 6f7c90dad313f10cbe10a1a004288b1aea191764..7787e757cf76fd3857faf1d626e9cdf9bd87749f 100644 (file)
@@ -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