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.1.0.rc1~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2780518da9102cda2d261bd866237710559d348;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 6610a1b9e..c7d2b892a 100644 --- a/templates/lxc-centos.in +++ b/templates/lxc-centos.in @@ -887,7 +887,7 @@ fi configure_centos_init -if [ ! -z $clean ]; then +if [ ! -z "$clean" ]; then clean || exit 1 exit 0 fi