diff --git a/src/script/ant b/src/script/ant index b79123dfe..00cb3e2b4 100644 --- a/src/script/ant +++ b/src/script/ant @@ -85,12 +85,12 @@ if [ -n "$CLASSPATH" ] ; then fi # add in the dependency .jar files -DIRLIBS=${ANT_HOME}/lib/*.jar -for i in ${DIRLIBS} +DIRLIBS="${ANT_HOME}"/lib +for i in "${DIRLIBS}"/*.jar do # if the directory is empty, then it will return the input string # this is stupid, so case for it - if [ "$i" != "${DIRLIBS}" ] ; then + if [ "$i" != "${DIRLIBS}/*.jar" ] ; then if [ -z "$LOCALCLASSPATH" ] ; then LOCALCLASSPATH=$i else