]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-fedora: protect possibly unset variable with quotes for -z check
authorMichael Adam <obnox@samba.org>
Thu, 8 Jan 2015 09:01:18 +0000 (10:01 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 30 Jan 2015 08:55:35 +0000 (09:55 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-fedora.in

index f758364bd012f4028f06d0fbe710b57da92e514c..6cdff515d4578a6f06a7bcabe7331ed74f0b2133 100644 (file)
@@ -1405,7 +1405,7 @@ then
     configure_fedora_init
 fi
 
-if [ ! -z $clean ]; then
+if [ ! -z "$clean" ]; then
     clean || exit 1
     exit 0
 fi