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

index d1e4edd18e052777756e44671b4b8751d7f7a40f..65093f3592a4f23a6912a9f90dba54d0fb42edae 100644 (file)
@@ -573,7 +573,7 @@ configure_debian_systemd $path $rootfs
 
 post_process ${rootfs} ${release} ${arch} ${hostarch} ${packages}
 
-if [ ! -z $clean ]; then
+if [ ! -z "$clean" ]; then
     clean || exit 1
     exit 0
 fi