]>
code.delx.au - osx-proxyconf/blob - proxyconf.sh
3 if [ "$(sysconfig "HTTPEnable
")" -eq 1 ]; then
4 host="$(sysconfig "HTTPProxy
")"
5 port
="$(sysconfig "HTTPPort
")"
6 echo "export http_proxy=\"http://${host}:${port}\""
8 if [ "$(sysconfig "HTTPSEnable
")" -eq 1 ]; then
9 host="$(sysconfig "HTTPSProxy
")"
10 port
="$(sysconfig "HTTPSPort
")"
11 echo "export https_proxy=\"http://${host}:${port}\""
13 if [ "$(sysconfig "FTPEnable
")" -eq 1 ]; then
14 host="$(sysconfig "FTPProxy
")"
15 port
="$(sysconfig "FTPPort
")"
16 echo "export ftp_proxy=\"http://${host}:${port}\""