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