Symmetrical spaces + remove useless logic

This commit is contained in:
William Wernert
2021-04-19 13:50:30 -04:00
parent 002fa99055
commit 07e0ce563d

View File

@@ -1040,14 +1040,11 @@ whiptail_net_method() {
EOM EOM
local options=( local options=(
" Direct" "" " Direct " ""
) )
local proxy_desc="proxy the traffic for git, docker client, wget, curl, ${pkg_mngr}, and various other SO components through a separate server in your environment." local proxy_desc="proxy the traffic for git, docker client, wget, curl, ${pkg_mngr}, and various other SO components through a separate server in your environment."
if [[ $is_minion ]]; then if [[ $is_minion ]]; then
local mngr_article
if [[ $is_distmanager ]]; then mngr_article="this"; else mngr_article="the"; fi
read -r -d '' options_msg <<- EOM read -r -d '' options_msg <<- EOM
${options_msg} ${options_msg}
@@ -1059,9 +1056,9 @@ whiptail_net_method() {
EOM EOM
options+=( options+=(
" Direct + Manager" "" " Direct + Manager " ""
" Proxy" "" " Proxy " ""
" Proxy + Manager" "" " Proxy + Manager " ""
) )
local height=25 local height=25
else else
@@ -1071,7 +1068,7 @@ whiptail_net_method() {
"Proxy" - ${proxy_desc} "Proxy" - ${proxy_desc}
EOM EOM
options+=( options+=(
" Proxy" "" " Proxy " ""
) )
local height=17 local height=17
fi fi