[wip][fix] Don't add logic to so-setup, create wrapper function in so-functions

This commit is contained in:
William Wernert
2021-03-04 12:10:14 -05:00
parent d19ca943cc
commit 4339ded17f
2 changed files with 14 additions and 14 deletions

View File

@@ -536,6 +536,18 @@ collect_patch_schedule_name_import() {
}
collect_proxy() {
collect_proxy_details
while ! proxy_validate; do
if whiptail_invalid_proxy; then
collect_proxy_details no_ask
else
so_proxy=""
break
fi
done
}
collect_proxy_details() {
local ask=${1:-true}
local use_proxy
if [[ $ask != true ]]; then