From: Michael Adam Date: Thu, 8 Jan 2015 08:58:09 +0000 (+0100) Subject: lxc-debian: protect possibly unset variable with quotes for -z check X-Git-Tag: lxc-1.1.0.rc1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=227c560065b22f84e4e41724486863c31b77ac01;p=thirdparty%2Flxc.git lxc-debian: protect possibly unset variable with quotes for -z check Signed-off-by: Michael Adam Signed-off-by: Serge Hallyn --- 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