]> git.ipfire.org Git - thirdparty/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)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 30 Jan 2015 08:55:11 +0000 (09:55 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-altlinux.in

index a822e80cc298376d8f2a1108d9c7f5e59f41acd7..5ba0512e44009aa2cbfafa0175f3f1d663d28f01 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