git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1484527 13f79535-47bb-0310-9956-ffa450edef68
@@ -91,7 +91,7 @@ done
#make it work in the binary package
#(use array for LIBPATH to account for spaces within wildcard expansion)
-if [ -e "${ZOOKEEPER_PREFIX}/share/zookeeper/zookeeper-*.jar" ]; then
+if ls "${ZOOKEEPER_PREFIX}"/share/zookeeper/zookeeper-*.jar > /dev/null 2>&1; then
LIBPATH=("${ZOOKEEPER_PREFIX}"/share/zookeeper/*.jar)
else
#release tarball format