Adds uppercase versions of env variables to proxy-on command

master
Jonathan Hodgson 8 months ago
parent e113ed3992
commit d2cf4c7f55
  1. 10
      shells/shared/functions

@ -114,9 +114,13 @@ function proxy_on() {
fi
local proxy=$1
export http_proxy="$proxy" \
https_proxy=$proxy \
ftp_proxy=$proxy \
rsync_proxy=$proxy
HTTP_PROXY="$proxy" \
https_proxy="$proxy" \
HTTPS_PROXY="$proxy" \
ftp_proxy="$proxy" \
FTP_PROXY="$proxy" \
rsync_proxy="$proxy" \
RSYNC_PROXY="$proxy"
echo "Proxy environment variable set."
return 0
fi

Loading…
Cancel
Save