From 227c560065b22f84e4e41724486863c31b77ac01 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 8 Jan 2015 09:58:09 +0100 Subject: [PATCH] lxc-debian: protect possibly unset variable with quotes for -z check Signed-off-by: Michael Adam Signed-off-by: Serge Hallyn --- templates/lxc-debian.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in index d1e4edd18..65093f359 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -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 -- 2.47.2