diff options
Diffstat (limited to 'scripts/oe-git-proxy')
-rwxr-xr-x | scripts/oe-git-proxy | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy index 24732829fb..b971c88ec5 100755 --- a/scripts/oe-git-proxy +++ b/scripts/oe-git-proxy | |||
@@ -113,7 +113,9 @@ done | |||
113 | # Proxy is necessary, determine protocol, server, and port | 113 | # Proxy is necessary, determine protocol, server, and port |
114 | PROTO=$(echo $ALL_PROXY | sed -e 's/\([^:]*\):\/\/.*/\1/') | 114 | PROTO=$(echo $ALL_PROXY | sed -e 's/\([^:]*\):\/\/.*/\1/') |
115 | PROXY=$(echo $ALL_PROXY | sed -e 's/.*:\/\/\([^:]*\).*/\1/') | 115 | PROXY=$(echo $ALL_PROXY | sed -e 's/.*:\/\/\([^:]*\).*/\1/') |
116 | PORT=$(echo $ALL_PROXY | sed -e 's/.*:\([0-9]*\)\/?$/\1/') | 116 | # For backwards compatibility, this allows the port number to be followed by /? |
117 | # in addition to the customary optional / | ||
118 | PORT=$(echo $ALL_PROXY | sed -e 's/.*:\([0-9]*\)\(\/?\?\)\?$/\1/') | ||
117 | if [ "$PORT" = "$ALL_PROXY" ]; then | 119 | if [ "$PORT" = "$ALL_PROXY" ]; then |
118 | PORT="" | 120 | PORT="" |
119 | fi | 121 | fi |