From: Michael Adam Date: Thu, 8 Jan 2015 09:03:53 +0000 (+0100) Subject: lxc-centos: protect possibly unset variable with quotes for -z check X-Git-Tag: lxc-1.0.8~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2575832f88d0e6d483fc86f13044cf602fb9bb10;p=thirdparty%2Flxc.git lxc-centos: protect possibly unset variable with quotes for -z check Signed-off-by: Michael Adam Signed-off-by: Serge Hallyn --- diff --git a/templates/lxc-centos.in b/templates/lxc-centos.in index 19a8f83b8..a236bde88 100644 --- a/templates/lxc-centos.in +++ b/templates/lxc-centos.in @@ -881,7 +881,7 @@ fi configure_centos_init -if [ ! -z $clean ]; then +if [ ! -z "$clean" ]; then clean || exit 1 exit 0 fi