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

index ed7fde6e95dcf7e9aa8564f6154f3b0499ff1345..2df0136e34d8350bba9521ab27fb99530710d18d 100644 (file)
@@ -552,7 +552,7 @@ configure_debian_systemd $path $rootfs
 
 post_process ${rootfs} ${release} ${arch} ${hostarch}
 
-if [ ! -z $clean ]; then
+if [ ! -z "$clean" ]; then
     clean || exit 1
     exit 0
 fi