https://issues.shibboleth.net/jira/browse/SSPCPP-501
authorScott Cantor <cantor.2@osu.edu>
Mon, 6 May 2013 02:40:45 +0000 (02:40 +0000)
committerScott Cantor <cantor.2@osu.edu>
Mon, 6 May 2013 02:40:45 +0000 (02:40 +0000)
configs/metagen.sh

index 1761035..d616b1f 100755 (executable)
@@ -74,14 +74,16 @@ if [ -z $ENTITYID ] ; then
     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.