From: Michael Adam Date: Thu, 8 Jan 2015 09:43:52 +0000 (+0100) Subject: lxc-altlinux: protect possibly unset variable with quotes for -z check X-Git-Tag: lxc-1.1.0.rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4986f1c435636a69193ac90452b10075122d9005;p=thirdparty%2Flxc.git lxc-altlinux: protect possibly unset variable with quotes for -z check Signed-off-by: Michael Adam Signed-off-by: Serge Hallyn --- diff --git a/templates/lxc-altlinux.in b/templates/lxc-altlinux.in index 9e78125ec..ac4527b36 100644 --- a/templates/lxc-altlinux.in +++ b/templates/lxc-altlinux.in @@ -478,7 +478,7 @@ if [ $? -ne 0 ]; then exit 1 fi -if [ ! -z $clean ]; then +if [ ! -z "$clean" ]; then clean || exit 1 exit 0 fi