[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 22:57:31 +09:00
parent 2e4d33565f
commit 13484638b5
2 changed files with 4 additions and 8 deletions

View file

@ -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

View file

@ -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