[cpp-sp COMMIT] /branches/REL_2/configs/metagen.sh

noreply at shibboleth.net noreply at shibboleth.net
Sun May 5 22:40:45 EDT 2013


Author: scantor
Date: Sun May  5 22:40:45 2013
New Revision: 3843

URL: http://svn.shibboleth.net/view/cpp-sp?rev=3843&view=rev
Log:
https://issues.shibboleth.net/jira/browse/SSPCPP-501

Modified:
    branches/REL_2/configs/metagen.sh

Modified: branches/REL_2/configs/metagen.sh
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/configs/metagen.sh?rev=3843&r1=3842&r2=3843&view=diff
==============================================================================
--- branches/REL_2/configs/metagen.sh (original)
+++ branches/REL_2/configs/metagen.sh Sun May  5 22:40:45 2013
@@ -74,14 +74,16 @@
     fi
 fi
 
-if [ -s $HOSTLIST ] ; then
-    while read h
-    do
-        HOSTS[${#HOSTS[@]}]=$h
-    done <$HOSTLIST
-else
-    echo File with list of hostnames $l does not exist! 
-    exit 2
+if [ ! -z $HOSTLIST ] ; then
+    if [ -s $HOSTLIST ] ; then
+        while read h
+        do
+            HOSTS[${#HOSTS[@]}]=$h
+        done <$HOSTLIST
+    else
+        echo File with list of hostnames $l does not exist! 
+        exit 2
+    fi
 fi
 
 # Establish protocols and bindings.



More information about the commits mailing list