Updated Branches: refs/heads/1.4.5-SNAPSHOT 041b482f6 -> 36f503c65
ACCUMULO-1997 Verify that the ACCUMULO_HOME (computed or provided) is actually a directory Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/36f503c6 Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/36f503c6 Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/36f503c6 Branch: refs/heads/1.4.5-SNAPSHOT Commit: 36f503c653b2edbd29b37f79852602660e564db2 Parents: 041b482 Author: Josh Elser <els...@apache.org> Authored: Fri Dec 20 00:52:48 2013 -0500 Committer: Josh Elser <els...@apache.org> Committed: Fri Dec 20 00:52:48 2013 -0500 ---------------------------------------------------------------------- bin/config.sh | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/36f503c6/bin/config.sh ---------------------------------------------------------------------- diff --git a/bin/config.sh b/bin/config.sh index 8d0672c..665777e 100755 --- a/bin/config.sh +++ b/bin/config.sh @@ -58,6 +58,11 @@ if [ -z "${ACCUMULO_HOME}" ] ; then export ACCUMULO_HOME=`cd $ACCUMULO_HOME; pwd` fi +if [ ! -d "${ACCUMULO_HOME}" ]; then + echo "ACCUMULO_HOME=${ACCUMULO_HOME} is not a valid directory. Please make sure it exists" + exit 1 +fi + ACCUMULO_CONF_DIR="${ACCUMULO_CONF_DIR:-$ACCUMULO_HOME/conf}" export ACCUMULO_CONF_DIR if [ -z "$ACCUMULO_CONF_DIR" -o ! -d "$ACCUMULO_CONF_DIR" ]