HBASE-2831 Fix '' path duplication in setup scripts

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@963539 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-07-13 00:24:12 +00:00
parent c36ed07685
commit 00ed966728
9 changed files with 10 additions and 8 deletions

View File

@ -430,6 +430,8 @@ Release 0.21.0 - Unreleased
(Benoit Sigoure via Stack) (Benoit Sigoure via Stack)
HBASE-2806 (small compile fix via jgray) HBASE-2806 (small compile fix via jgray)
HBASE-2797 Another NPE in ReadWriteConsistencyControl HBASE-2797 Another NPE in ReadWriteConsistencyControl
HBASE-2831 Fix '$bin' path duplication in setup scripts
(Nicolas Spiegelberg via Stack)
IMPROVEMENTS IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable HBASE-1760 Cleanup TODOs in HTable

View File

@ -43,7 +43,7 @@
# MAVEN_HOME Where mvn is installed. # MAVEN_HOME Where mvn is installed.
# #
bin=`dirname "$0"` bin=`dirname "$0"`
bin=`cd "$bin"; pwd` bin=`cd "$bin">/dev/null; pwd`
# This will set HBASE_HOME, etc. # This will set HBASE_HOME, etc.
. "$bin"/hbase-config.sh . "$bin"/hbase-config.sh

View File

@ -40,7 +40,7 @@ done
# convert relative path to absolute path # convert relative path to absolute path
bin=`dirname "$this"` bin=`dirname "$this"`
script=`basename "$this"` script=`basename "$this"`
bin=`cd "$bin"; pwd` bin=`cd "$bin">/dev/null; pwd`
this="$bin/$script" this="$bin/$script"
# the root of the hbase installation # the root of the hbase installation

View File

@ -43,7 +43,7 @@ if [ $# -le 1 ]; then
fi fi
bin=`dirname "$0"` bin=`dirname "$0"`
bin=`cd "$bin"; pwd` bin=`cd "$bin">/dev/null; pwd`
. "$bin"/hbase-config.sh . "$bin"/hbase-config.sh

View File

@ -33,7 +33,7 @@ if [ $# -le 1 ]; then
fi fi
bin=`dirname "$0"` bin=`dirname "$0"`
bin=`cd "$bin"; pwd` bin=`cd "$bin">/dev/null; pwd`
. $bin/hbase-config.sh . $bin/hbase-config.sh

View File

@ -42,7 +42,7 @@ if [ $# -le 0 ]; then
fi fi
bin=`dirname "$0"` bin=`dirname "$0"`
bin=`cd "$bin"; pwd` bin=`cd "$bin">/dev/null; pwd`
. "$bin"/hbase-config.sh . "$bin"/hbase-config.sh

View File

@ -27,7 +27,7 @@
usage="Usage: start-hbase.sh" usage="Usage: start-hbase.sh"
bin=`dirname "$0"` bin=`dirname "$0"`
bin=`cd "$bin"; pwd` bin=`cd "$bin">/dev/null; pwd`
. "$bin"/hbase-config.sh . "$bin"/hbase-config.sh

View File

@ -25,7 +25,7 @@
# Stop hadoop hbase daemons. Run this on master node. # Stop hadoop hbase daemons. Run this on master node.
bin=`dirname "$0"` bin=`dirname "$0"`
bin=`cd "$bin"; pwd` bin=`cd "$bin">/dev/null; pwd`
. "$bin"/hbase-config.sh . "$bin"/hbase-config.sh

View File

@ -39,7 +39,7 @@ if [ $# -le 0 ]; then
fi fi
bin=`dirname "$0"` bin=`dirname "$0"`
bin=`cd "$bin"; pwd` bin=`cd "$bin">/dev/null; pwd`
. "$bin"/hbase-config.sh . "$bin"/hbase-config.sh