mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
[ZEPPELIN-13] ZEPPELIN_CONF_DIR cannot be reached until ZEPPELIN_CONF_DIR become set
- Fixed style guide.
This commit is contained in:
parent
13484638b5
commit
1c4ac3ea7f
2 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue