some readability improvements
This commit is contained in:
@@ -45,9 +45,9 @@ export -f get_mod_name
|
||||
set_system_proxy()
|
||||
{
|
||||
# Declare proxy system vars if needed and if not already declared
|
||||
if [[ -n $PROXYSRV && -n $PROXYSRVPORT && -z $NO_PROXY ]]; then
|
||||
export http_proxy=${http_proxy:-"http://$PROXYSRV:$PROXYSRVPORT/"}
|
||||
export https_proxy=${https_proxy:-"http://$PROXYSRV:$PROXYSRVPORT/"}
|
||||
if [[ -n $PROXY_SRV && -n $PROXY_SRV_PORT && -z $NO_PROXY ]]; then
|
||||
export http_proxy=${http_proxy:-"http://$PROXY_SRV:$PROXY_SRV_PORT/"}
|
||||
export https_proxy=${https_proxy:-"http://$PROXY_SRV:$PROXY_SRV_PORT/"}
|
||||
fi
|
||||
}
|
||||
export -f set_system_proxy
|
||||
|
||||
Reference in New Issue
Block a user