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.0.8~204 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1af6ee0fe224a3f4ccdb39299e76259f6693cd14;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 a822e80cc..5ba0512e4 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