Adds uppercase versions of env variables to proxy-on command

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

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

Loading…
Cancel
Save