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
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."
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
${options_msg}
@@ -1059,9 +1056,9 @@ whiptail_net_method() {
EOM
options+=(
" Direct + Manager" ""
" Proxy" ""
" Proxy + Manager" ""
" Direct + Manager " ""
" Proxy " ""
" Proxy + Manager " ""
)
local height=25
else
@@ -1071,7 +1068,7 @@ whiptail_net_method() {
"Proxy" - ${proxy_desc}
EOM
options+=(
" Proxy" ""
" Proxy " ""
)
local height=17
fi