From 1987444c412e80d4849e243935094747c795710b Mon Sep 17 00:00:00 2001 From: Denys Havrysh Date: Wed, 9 Mar 2016 12:27:10 +0200 Subject: [PATCH] Small indentation fixes --- bootstrap-salt.sh | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 8a20f50..bb88e47 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -313,11 +313,11 @@ while getopts ":hvnDc:Gg:k:MSNXCPFUKIA:i:Lp:dH:Zbsf" opt do case "${opt}" in - h ) __usage; exit 0 ;; - + h ) __usage; exit 0 ;; v ) echo "$0 -- Version $__ScriptVersion"; exit 0 ;; n ) _COLORS=0; __detect_color_support ;; D ) _ECHO_DEBUG=$BS_TRUE ;; + c ) _TEMP_CONFIG_DIR=$(__check_config_dir "$OPTARG") # If the configuration directory does not exist, error out if [ "$_TEMP_CONFIG_DIR" = "null" ]; then @@ -329,14 +329,17 @@ do exit 1 fi ;; - g ) _SALT_REPO_URL=$OPTARG ;; - G ) if [ "${_SALT_REPO_URL}" = "${_SALTSTACK_REPO_URL}" ]; then - _SALTSTACK_REPO_URL="https://github.com/saltstack/salt.git" - _SALT_REPO_URL=${_SALTSTACK_REPO_URL} - else - _SALTSTACK_REPO_URL="https://github.com/saltstack/salt.git" - fi + + g ) _SALT_REPO_URL=$OPTARG ;; + + G ) if [ "${_SALT_REPO_URL}" = "${_SALTSTACK_REPO_URL}" ]; then + _SALTSTACK_REPO_URL="https://github.com/saltstack/salt.git" + _SALT_REPO_URL=${_SALTSTACK_REPO_URL} + else + _SALTSTACK_REPO_URL="https://github.com/saltstack/salt.git" + fi ;; + k ) _TEMP_KEYS_DIR="$OPTARG" # If the configuration directory does not exist, error out if [ ! -d "$_TEMP_KEYS_DIR" ]; then @@ -344,6 +347,7 @@ do exit 1 fi ;; + s ) _SLEEP="$OPTARG" ;; M ) _INSTALL_MASTER=$BS_TRUE ;; S ) _INSTALL_SYNDIC=$BS_TRUE ;; @@ -365,7 +369,6 @@ do b ) _NO_DEPS=$BS_TRUE ;; f ) _FORCE_SHALLOW_CLONE=$BS_TRUE ;; - \?) echo echoerror "Option does not exist : $OPTARG" __usage