From 0a2843a958dd240ebd6312890e634c9bf5f4883b Mon Sep 17 00:00:00 2001 From: Erik Weathers Date: Mon, 21 Sep 2015 16:52:50 -0700 Subject: [PATCH] fix bin/storm's inconsistent indentation and if-then styling --- bin/storm | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/bin/storm b/bin/storm index 809a83a6eb8..3bd916c1eaa 100755 --- a/bin/storm +++ b/bin/storm @@ -52,18 +52,16 @@ STORM_BIN_DIR=`dirname ${PRG}` export STORM_BASE_DIR=`cd ${STORM_BIN_DIR}/..;pwd` #check to see if the conf dir is given as an optional argument -if [ $# -gt 1 ] -then - if [ "--config" = "$1" ] - then - conf_file=$2 - if [ ! -f "$conf_file" ]; then - echo "Error: Cannot find configuration directory: $conf_file" - exit 1 - fi - STORM_CONF_FILE=$conf_file - STORM_CONF_DIR=`dirname $conf_file` +if [ $# -gt 1 ]; then + if [ "--config" = "$1" ]; then + conf_file=$2 + if [ ! -f "$conf_file" ]; then + echo "Error: Cannot find configuration directory: $conf_file" + exit 1 fi + STORM_CONF_FILE=$conf_file + STORM_CONF_DIR=`dirname $conf_file` + fi fi export STORM_CONF_DIR="${STORM_CONF_DIR:-$STORM_BASE_DIR/conf}"