From: scantor Date: Mon, 6 May 2013 02:40:45 +0000 (+0000) Subject: https://issues.shibboleth.net/jira/browse/SSPCPP-501 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=commitdiff_plain;h=b43bac6ebc225d747fef9e68b35a1c895b697927 https://issues.shibboleth.net/jira/browse/SSPCPP-501 git-svn-id: https://svn.shibboleth.net/cpp-sp/branches/REL_2@3843 cb58f699-b61c-0410-a6fe-9272a202ed29 --- diff --git a/configs/metagen.sh b/configs/metagen.sh index 1761035..d616b1f 100755 --- a/configs/metagen.sh +++ b/configs/metagen.sh @@ -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.