]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-openmandriva: protect possibly unset variable with quotes in -z check
authorMichael Adam <obnox@samba.org>
Thu, 8 Jan 2015 09:49:19 +0000 (10:49 +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-openmandriva.in

index 4656177896513eaf4b474285940cde058c110dd4..be8023e63c2686bde895d6e6c8196c9d85ee37ab 100644 (file)
@@ -483,7 +483,7 @@ if [ $? -ne 0 ]; then
     exit 1
 fi
 
-if [ ! -z $clean ]; then
+if [ ! -z "$clean" ]; then
     clean || exit 1
     exit 0
 fi