db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fuzzylo...@apache.org
Subject svn commit: r443076 - /db/derby/code/trunk/bin/derby_common.sh
Date Wed, 13 Sep 2006 19:03:04 GMT
Author: fuzzylogic
Date: Wed Sep 13 12:03:03 2006
New Revision: 443076

URL: http://svn.apache.org/viewvc?view=rev&rev=443076
Log:
Minor fix to detect MKS before running `expr index` which can output error text.

Modified:
    db/derby/code/trunk/bin/derby_common.sh

Modified: db/derby/code/trunk/bin/derby_common.sh
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/bin/derby_common.sh?view=diff&rev=443076&r1=443075&r2=443076
==============================================================================
--- db/derby/code/trunk/bin/derby_common.sh (original)
+++ db/derby/code/trunk/bin/derby_common.sh Wed Sep 13 12:03:03 2006
@@ -162,6 +162,9 @@
 fi
 
 # Readjust classpath for MKS
-if [ `expr index $SHELL sh.exe` -gt 0 ]; then
-  LOCALCLASSPATH=`echo $LOCALCLASSPATH | sed -E 's/([\d\w]*):([\d\w]*)/\1;\2/g'`
+if [ ! `expr index` = "index" ]; then 
+  if [ `expr index $SHELL sh.exe` -gt 0 ]; then
+    LOCALCLASSPATH=`echo $LOCALCLASSPATH | sed -E 's/([\d\w]*):([\d\w]*)/\1;\2/g
+'`
+  fi
 fi



Mime
View raw message