git-svn-id: https://svn.shibboleth.net/cpp-sp/branches/REL_2@3843
cb58f699-b61c-0410-a6fe-
9272a202ed29
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.