bash_profile: Fix proxy snafu.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 27 Dec 2008 11:56:33 +0000 (11:56 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 27 Dec 2008 12:10:25 +0000 (12:10 +0000)
The earlier change 93ba996def65bdebd7d7026caff9661d9b038ead botched the
proxy syntax hopelessly.  This one fixes it again.

bash_profile

index f2b0d38..f0ca782 100644 (file)
@@ -160,13 +160,13 @@ export PERL_READLINE_NOWARN=yes
 http=`mdw-conf http-proxy none`
 case "${http_proxy-none},$http" in
   *,none) ;;
-  none,*) export http_proxy=$http ;;
+  none,*) export http_proxy=http://$http/ ;;
 esac
 ftp=`mdw-conf ftp-proxy none`
 case "${ftp_proxy-none},$ftp,${http_proxy-none}" in
   *,none,none) ;;
   none,none,*) export ftp_proxy=$http_proxy ;;
-  none,*,*) export ftp_proxy=$ftp ;;
+  none,*,*) export ftp_proxy=http://$ftp/ ;;
 esac
 
 export XUSERFILESEARCHPATH="$HOME/.Xapps/%N:/usr/lib/X11/%T/%N%S"