]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lxc-centos: protect possibly unset variable with quotes for -z check
authorMichael Adam <obnox@samba.org>
Thu, 8 Jan 2015 09:03:53 +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 6610a1b9e8f368cd6f49b69f4e352d88cd780380..c7d2b892a0697fae347b9c2250ec09277b09353c 100644 (file)
@@ -887,7 +887,7 @@ fi
 
 configure_centos_init
 
-if [ ! -z $clean ]; then
+if [ ! -z "$clean" ]; then
     clean || exit 1
     exit 0
 fi