From eb2dc4cfd79c0f99a37372682d8f37d6f4799bab Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 8 Jan 2015 10:01:18 +0100 Subject: [PATCH] lxc-fedora: protect possibly unset variable with quotes for -z check Signed-off-by: Michael Adam Signed-off-by: Serge Hallyn --- templates/lxc-fedora.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3