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
2e4d33565f
commit
13484638b5
2 changed files with 4 additions and 8 deletions
|
|
@ -23,12 +23,10 @@
|
|||
|
||||
USAGE="Usage: zeppelin-daemon.sh [--config <conf-dir>] {start|stop|restart|reload|status}"
|
||||
|
||||
if [ "$1" == "--config" ]
|
||||
then
|
||||
if [[ "$1" == "--config" ]]; then
|
||||
shift
|
||||
conf_dir="$1"
|
||||
if [ ! -d "$conf_dir" ]
|
||||
then
|
||||
if [[ ! -d "$conf_dir" ]]; then
|
||||
echo "ERROR : $conf_dir is not a directory"
|
||||
echo ${USAGE}
|
||||
exit 1
|
||||
|
|
|
|||
|
|
@ -26,12 +26,10 @@ function usage() {
|
|||
exit 0
|
||||
}
|
||||
|
||||
if [ "$1" == "--config" ]
|
||||
then
|
||||
if [[ "$1" == "--config" ]]; then
|
||||
shift
|
||||
conf_dir="$1"
|
||||
if [ ! -d "$conf_dir" ]
|
||||
then
|
||||
if [[ ! -d "$conf_dir" ]]; then
|
||||
echo "ERROR : $conf_dir is not a directory"
|
||||
echo ${USAGE}
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue