]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-centos: fix parsing of option "--clean": it takes no argument
authorMichael Adam <obnox@samba.org>
Thu, 8 Jan 2015 09:03:05 +0000 (10:03 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 30 Jan 2015 08:55:21 +0000 (09:55 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-centos.in

index 128dc167ce0883ecdd6c4c7501b4be97101a47f1..f11ce2a55add0b4805402231031d0da11085fd0d 100644 (file)
@@ -691,7 +691,7 @@ do
         -p|--path)      path=$2; shift 2;;
         --rootfs)       rootfs=$2; shift 2;;
         -n|--name)      name=$2; shift 2;;
-        -c|--clean)     clean=$2; shift 2;;
+        -c|--clean)     clean=1; shift 1;;
         -R|--release)   release=$2; shift 2;;
        --repo)         repo="$2"; shift 2;;
         -a|--arch)      newarch=$2; shift 2;;