X-Git-Url: https://code.delx.au/osx-proxyconf/blobdiff_plain/73f9aaa62ddd095db672645a5876fa9934abfba2..0d8f59d3f2a491918cb4221ed49b45f760cac97f:/proxyconf.sh diff --git a/proxyconf.sh b/proxyconf.sh deleted file mode 100755 index 61b0f50..0000000 --- a/proxyconf.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -if [ "$(sysconfig -n "HTTPEnable")" -eq 1 ]; then - host="$(sysconfig -s "HTTPProxy")" - port="$(sysconfig -n "HTTPPort")" - echo "export http_proxy=\"http://${host}:${port}\"" -fi -if [ "$(sysconfig -n "HTTPSEnable")" -eq 1 ]; then - host="$(sysconfig -s "HTTPSProxy")" - port="$(sysconfig -n "HTTPSPort")" - echo "export https_proxy=\"http://${host}:${port}\"" -fi -if [ "$(sysconfig -n "FTPEnable")" -eq 1 ]; then - host="$(sysconfig -s "FTPProxy")" - port="$(sysconfig -n "FTPPort")" - echo "export ftp_proxy=\"http://${host}:${port}\"" -fi