Author: cutting
Date: Fri Aug 26 12:19:14 2005
New Revision: 240310

URL: http://svn.apache.org/viewcvs?rev=240310&view=rev
Log:
Default NUTCH_SLAVES to ~/.slaves.

Modified:
    lucene/nutch/branches/mapred/bin/slaves.sh

Modified: lucene/nutch/branches/mapred/bin/slaves.sh
URL: 
http://svn.apache.org/viewcvs/lucene/nutch/branches/mapred/bin/slaves.sh?rev=240310&r1=240309&r2=240310&view=diff
==============================================================================
--- lucene/nutch/branches/mapred/bin/slaves.sh (original)
+++ lucene/nutch/branches/mapred/bin/slaves.sh Fri Aug 26 12:19:14 2005
@@ -4,7 +4,7 @@
 #
 # Environment Variables
 #
-#   NUTCH_SLAVES    File naming remote hosts.
+#   NUTCH_SLAVES    File naming remote hosts.  Default is ~/.slaves
 ##
 
 usage="Usage: slaves.sh command..."
@@ -16,8 +16,7 @@
 fi
 
 if [ "$NUTCH_SLAVES" = "" ]; then
-  echo Set NUTCH_SLAVES to file listing slave host names.
-  exit 1
+  export NUTCH_SLAVES=$HOME/.slaves
 fi
 
 for slave in `cat $NUTCH_SLAVES`; do


Reply via email to