From 9aed78fad15fe35c53d1a6af8147fca7018e147f 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 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