From ffc36deb7758b21f39069d21a0fe68b9553a1189 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 8 Jan 2015 10:36:06 +0100 Subject: [PATCH] lxc-opensuse: protect possibly unset variable with quotes in -z check Signed-off-by: Michael Adam Signed-off-by: Serge Hallyn --- templates/lxc-opensuse.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lxc-opensuse.in b/templates/lxc-opensuse.in index 89d179a3c..6fd2bb7d5 100644 --- a/templates/lxc-opensuse.in +++ b/templates/lxc-opensuse.in @@ -434,7 +434,7 @@ if [ $? -ne 0 ]; then exit 1 fi -if [ ! -z $clean ]; then +if [ ! -z "$clean" ]; then clean || exit 1 exit 0 fi -- 2.47.3