]> git.proxmox.com Git - mirror_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)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Sat, 10 Jan 2015 16:07:41 +0000 (10:07 -0600)
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-centos.in

index ee881785497d4515710c8ac901be55c50a639272..ee34289ea8b338e43257bddd000facd93f2c0755 100644 (file)
@@ -697,7 +697,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;;