[Fusionforge-commits] r16481 - in trunk: . src/deb-specific

Roland Mas lolando at fusionforge.org
Mon Oct 8 15:58:56 CEST 2012


Author: lolando
Date: 2012-10-08 15:58:55 +0200 (Mon, 08 Oct 2012)
New Revision: 16481

Modified:
   trunk/
   trunk/src/deb-specific/install-ldap.sh
Log:
Fix unquoted (and potentially wrong) -z invocation in shell

Modified: trunk/src/deb-specific/install-ldap.sh
===================================================================
--- trunk/src/deb-specific/install-ldap.sh	2012-10-08 13:26:52 UTC (rev 16480)
+++ trunk/src/deb-specific/install-ldap.sh	2012-10-08 13:58:55 UTC (rev 16481)
@@ -71,7 +71,7 @@
     if [ -z "$addon" ] ; then
 	echo Gforge base DN is equal to server base DN -- OK
 	return 0
-    elif [ -z $(echo $addon | cut -d, -f2-) ] ; then
+    elif [ -z "$(echo $addon | cut -d, -f2-)" ] ; then
 	echo Gforge base DN is just a level under the server base DN -- OK
 	return 0
     else




More information about the Fusionforge-commits mailing list