[wip] Fix how collect_proxy function works on retry

This commit is contained in:
William Wernert
2021-03-04 11:41:36 -05:00
parent 7ee0fd6375
commit 5a97341d33

View File

@@ -537,7 +537,15 @@ collect_patch_schedule_name_import() {
collect_proxy() {
local ask=${1:-true}
if [[ $ask == true ]] && whiptail_proxy_ask; then
local use_proxy
if [[ $ask != true ]]; then
use_proxy=0
else
whiptail_proxy_ask
use_proxy=$?
fi
if [[ $use_proxy == 0 ]]; then
whiptail_proxy_addr