]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-opensuse: protect possibly unset variable with quotes in -z check
authorMichael Adam <obnox@samba.org>
Thu, 8 Jan 2015 09:36:06 +0000 (10:36 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 30 Jan 2015 08:55:06 +0000 (09:55 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-opensuse.in

index 89d179a3cdd306626b5cd214caaad2cfb0859a44..6fd2bb7d5cc4c030f37cfde0474865ffe749fc89 100644 (file)
@@ -434,7 +434,7 @@ if [ $? -ne 0 ]; then
     exit 1
 fi
 
-if [ ! -z $clean ]; then
+if [ ! -z "$clean" ]; then
     clean || exit 1
     exit 0
 fi