You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2011/09/03 11:56:20 UTC
svn commit: r1164841 -
/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/start/workbench.sh
Author: fmui
Date: Sat Sep 3 09:56:20 2011
New Revision: 1164841
URL: http://svn.apache.org/viewvc?rev=1164841&view=rev
Log:
CMIS-427: Fixed Workbench start script for Linux
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/start/workbench.sh
Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/start/workbench.sh
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/start/workbench.sh?rev=1164841&r1=1164840&r2=1164841&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/start/workbench.sh (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/start/workbench.sh Sat Sep 3 09:56:20 2011
@@ -18,7 +18,7 @@
# @version@
if [ -z "$JAVA_HOME" ]; then
- j=`which java 2>/dev/null`
+ j=$(which java 2>/dev/null)
if [ -z "$j" ]; then
echo "Unable to locate Java!"
exit 1
@@ -33,9 +33,8 @@ fi
SCRIPT_DIR=$(dirname "$0")
cd "$SCRIPT_DIR/lib"
-jars=($(ls *.jar))
-WCP=""
-for i in "${jars[@]}"; do
+WCP="."
+for i in *.jar; do
WCP="$i:${WCP}"
done