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