patch for nutch and nutch-daemon.sh

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

patch for nutch and nutch-daemon.sh

Zaheed Haque
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"
$