[ZEPPELIN-13] ZEPPELIN_CONF_DIR cannot be reached until ZEPPELIN_CONF_DIR become set

- Fixed style guide.
This commit is contained in:
Jongyoul Lee 2015-04-02 23:44:55 +09:00
parent 13484638b5
commit 1c4ac3ea7f
2 changed files with 6 additions and 6 deletions

View file

@ -26,12 +26,12 @@ USAGE="Usage: zeppelin-daemon.sh [--config <conf-dir>] {start|stop|restart|reloa
if [[ "$1" == "--config" ]]; then
shift
conf_dir="$1"
if [[ ! -d "$conf_dir" ]]; then
echo "ERROR : $conf_dir is not a directory"
if [[ ! -d "${conf_dir}" ]]; then
echo "ERROR : ${conf_dir} is not a directory"
echo ${USAGE}
exit 1
else
export ZEPPELIN_CONF_DIR="$conf_dir"
export ZEPPELIN_CONF_DIR="${conf_dir}"
fi
shift
fi

View file

@ -29,12 +29,12 @@ function usage() {
if [[ "$1" == "--config" ]]; then
shift
conf_dir="$1"
if [[ ! -d "$conf_dir" ]]; then
echo "ERROR : $conf_dir is not a directory"
if [[ ! -d "{$conf_dir}" ]]; then
echo "ERROR : ${conf_dir} is not a directory"
echo ${USAGE}
exit 1
else
export ZEPPELIN_CONF_DIR="$conf_dir"
export ZEPPELIN_CONF_DIR="${conf_dir}"
fi
shift
fi