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.1.0.rc1~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9aed78fad15fe35c53d1a6af8147fca7018e147f;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 7789a0296..8d8b0b788 100644 --- a/templates/lxc-fedora.in +++ b/templates/lxc-fedora.in @@ -1415,7 +1415,7 @@ then configure_fedora_init fi -if [ ! -z $clean ]; then +if [ ! -z "$clean" ]; then clean || exit 1 exit 0 fi