]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-opensuse: protect possibly unset variable with quotes in -z check
authorMichael Adam <obnox@samba.org>
Thu, 8 Jan 2015 09:36:06 +0000 (10:36 +0100)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Sat, 10 Jan 2015 16:07:41 +0000 (10:07 -0600)
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-opensuse.in

index 20ffdbd08d85b125d27c5962b477bbed2d8d5eb7..bb015c84ff2c7d2a26685f80ad1d154bf3fc94fe 100644 (file)
@@ -489,7 +489,7 @@ if [ $? -ne 0 ]; then
     exit 1
 fi
 
-if [ ! -z $clean ]; then
+if [ ! -z "$clean" ]; then
     clean || exit 1
     exit 0
 fi