X-Git-Url: https://code.delx.au/osx-proxyconf/blobdiff_plain/36cb7efe89ad2c330f8809f3a5043d554682241d..0d8f59d3f2a491918cb4221ed49b45f760cac97f:/proxyconf.sh diff --git a/proxyconf.sh b/proxyconf.sh deleted file mode 100755 index 261ffbe..0000000 --- a/proxyconf.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -if [ "$(sysconfig -q "HTTPEnable")" = "1" ]; then - host="$(sysconfig -q "HTTPProxy")" - port="$(sysconfig -q "HTTPPort")" - echo "export http_proxy=\"http://${host}:${port}\"" -fi -if [ "$(sysconfig -q "HTTPSEnable")" = "1" ]; then - host="$(sysconfig -q "HTTPSProxy")" - port="$(sysconfig -q "HTTPSPort")" - echo "export https_proxy=\"http://${host}:${port}\"" -fi -if [ "$(sysconfig -q "FTPEnable")" = "1" ]; then - host="$(sysconfig -q "FTPProxy")" - port="$(sysconfig -q "FTPPort")" - echo "export ftp_proxy=\"http://${host}:${port}\"" -fi -if [ -n "${host}" ]; then - no_proxy="$(sysconfig ExceptionsList | tr '\n' ',' | sed 's/,$//g')" - echo "export no_proxy=\"${no_proxy}\"" -fi