From: Michael Adam Date: Thu, 8 Jan 2015 09:36:06 +0000 (+0100) Subject: lxc-opensuse: protect possibly unset variable with quotes in -z check X-Git-Tag: lxc-1.0.8~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffc36deb7758b21f39069d21a0fe68b9553a1189;p=thirdparty%2Flxc.git lxc-opensuse: protect possibly unset variable with quotes in -z check Signed-off-by: Michael Adam Signed-off-by: Serge Hallyn --- diff --git a/templates/lxc-opensuse.in b/templates/lxc-opensuse.in index 89d179a3c..6fd2bb7d5 100644 --- a/templates/lxc-opensuse.in +++ b/templates/lxc-opensuse.in @@ -434,7 +434,7 @@ if [ $? -ne 0 ]; then exit 1 fi -if [ ! -z $clean ]; then +if [ ! -z "$clean" ]; then clean || exit 1 exit 0 fi