You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2021/02/27 13:06:43 UTC

svn commit: r1886982 - /xmlbeans/trunk/src/main/shell/_setlib

Author: fanningpj
Date: Sat Feb 27 13:06:43 2021
New Revision: 1886982

URL: http://svn.apache.org/viewvc?rev=1886982&view=rev
Log:
fix issue in _setlib script

Modified:
    xmlbeans/trunk/src/main/shell/_setlib

Modified: xmlbeans/trunk/src/main/shell/_setlib
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/main/shell/_setlib?rev=1886982&r1=1886981&r2=1886982&view=diff
==============================================================================
--- xmlbeans/trunk/src/main/shell/_setlib (original)
+++ xmlbeans/trunk/src/main/shell/_setlib Sat Feb 27 13:06:43 2021
@@ -20,13 +20,15 @@ if [ -z "$XMLBEANS_HOME" ]; then
 fi
 
 XMLBEANS_LIB=
-if [ -f "$XMLBEANS_HOME"/build/lib/xmlbeans*.jar ]; then
+if ls $XMLBEANS_HOME/build/lib/xmlbeans*.jar 1> /dev/null 2>&1; then
     XMLBEANS_LIB=$XMLBEANS_HOME/build/lib
 fi
-if [ -f "$XMLBEANS_HOME"/lib/xmlbeans*.jar ]; then
+if ls $XMLBEANS_HOME/lib/xmlbeans*.jar 1> /dev/null 2>&1; then
     XMLBEANS_LIB=$XMLBEANS_HOME/lib
 fi
 
+echo XMLBEANS_LIB=$XMLBEANS_LIB
+
 if [ -z "$XMLBEANS_LIB" ]; then
     echo "ERROR: Could not find xmlbeans*.jar, try set XMLBEANS_LIB to the directory containing xmlbeans*.jar"
 fi



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org