]> code.delx.au - osx-proxyconf/commitdiff
proxyconf.sh can now find sysconfig as long as they are in the same dir (even
authorJames Bunton <jamesbunton@fastmail.fm>
Mon, 31 Mar 2008 07:30:33 +0000 (18:30 +1100)
committerJames Bunton <jamesbunton@fastmail.fm>
Mon, 31 Mar 2008 07:30:33 +0000 (18:30 +1100)
if neither are in the path)

proxyconf.sh

index dc9c86ea5544b2b9deaa7c687cb2d60f3f581c36..a6b7d23ff822b85e9e05794c51499bf0bd3cea0c 100755 (executable)
@@ -18,6 +18,10 @@ function printEnvironment() {
        fi
 
 }
        fi
 
 }
+
+
+PATH="$(dirname "$0"):${PATH}"
+
 printEnvironment "HTTP" "http_proxy"
 printEnvironment "HTTPS" "https_proxy"
 printEnvironment "FTP" "ftp_proxy"
 printEnvironment "HTTP" "http_proxy"
 printEnvironment "HTTPS" "https_proxy"
 printEnvironment "FTP" "ftp_proxy"