]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lxc-altlinux: protect possibly unset variable with quotes for -z check
authorMichael Adam <obnox@samba.org>
Thu, 8 Jan 2015 09:43:52 +0000 (10:43 +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-altlinux.in

index 9e78125ecce761a440c3e0f329ebc5259398b7c4..ac4527b362ef52af7f51abccfcf0b53a8897dc87 100644 (file)
@@ -478,7 +478,7 @@ if [ $? -ne 0 ]; then
     exit 1
 fi
 
-if [ ! -z $clean ]; then
+if [ ! -z "$clean" ]; then
     clean || exit 1
     exit 0
 fi