You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by Zaheed Haque <za...@gmail.com> on 2006/01/24 08:18:22 UTC
patch for nutch and nutch-daemon.sh
Hi:
Due to a bug in the if statement its not possible to use the symlinks
for the shell scripts. Below you will find the patch.
Thanks
Zaheed
-------------------
$ svn diff nutch
Index: nutch
===================================================================
--- nutch (revision 371849)
+++ nutch (working copy)
@@ -17,7 +17,7 @@
while [ -h "$THIS" ]; do
ls=`ls -ld "$THIS"`
link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '.*/.*' > /dev/null; then
+ if expr "$link" : '/.*' > /dev/null; then
THIS="$link"
else
THIS=`dirname "$THIS"`/"$link"
$ svn diff nutch-daemon.sh
Index: nutch-daemon.sh
===================================================================
--- nutch-daemon.sh (revision 371849)
+++ nutch-daemon.sh (working copy)
@@ -29,7 +29,7 @@
while [ -h "$this" ]; do
ls=`ls -ld "$this"`
link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '.*/.*' > /dev/null; then
+ if expr "$link" : '/.*' > /dev/null; then
this="$link"
else
this=`dirname "$this"`/"$link"
$