]> git.ipfire.org Git - thirdparty/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)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 30 Jan 2015 08:55:28 +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 19a8f83b8c1d4c8a4db653274942f7c206da6432..a236bde88e19faef6a4a57c751fde2da21e3506d 100644 (file)
@@ -881,7 +881,7 @@ fi
 
 configure_centos_init
 
-if [ ! -z $clean ]; then
+if [ ! -z "$clean" ]; then
     clean || exit 1
     exit 0
 fi