mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Small indentation fixes
This commit is contained in:
parent
5696216b54
commit
1987444c41
1 changed files with 13 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue