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.1.0.rc1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5a285ea8fde10254f3b6d1743cec372a2d01605;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 20ffdbd08..bb015c84f 100644 --- a/templates/lxc-opensuse.in +++ b/templates/lxc-opensuse.in @@ -489,7 +489,7 @@ if [ $? -ne 0 ]; then exit 1 fi -if [ ! -z $clean ]; then +if [ ! -z "$clean" ]; then clean || exit 1 exit 0 fi