]> 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)
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-fedora.in

index 7789a0296eba4d61a51c01034d48125a580135f6..8d8b0b788ba78793e5e869c0c363e26eb991d21b 100644 (file)
@@ -1415,7 +1415,7 @@ then
     configure_fedora_init
 fi
 
-if [ ! -z $clean ]; then
+if [ ! -z "$clean" ]; then
     clean || exit 1
     exit 0
 fi