svn commit: r599401 - /lenya/branches/BRANCH_1_2_X/lenya.sh

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: solprovider
Date: Thu Nov 29 04:08:11 2007
New Revision: 599401

URL: http://svn.apache.org/viewvc?rev=599401&view=rev
Log:
Fixed Bug 43748.  Replaced bash-specific code with POSIX sh acceptable code.

Modified:
    lenya/branches/BRANCH_1_2_X/lenya.sh

Modified: lenya/branches/BRANCH_1_2_X/lenya.sh
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_1_2_X/lenya.sh?rev=599401&r1=599400&r2=599401&view=diff
==============================================================================
--- lenya/branches/BRANCH_1_2_X/lenya.sh (original)
+++ lenya/branches/BRANCH_1_2_X/lenya.sh Thu Nov 29 04:08:11 2007
@@ -91,8 +91,7 @@
 fi
 
 # Set Lenya home to directory containing this script
-ENDSLASH=`expr match "$0" '.*/'`
-LENYA_HOME=`expr substr "$0" 1 $ENDSLASH`
+LENYA_HOME=${0%/*}
 cd $LENYA_HOME
 LENYA_HOME=`pwd -P`
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.