aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/git-proxy-cmd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/git-proxy-cmd.sh b/scripts/git-proxy-cmd.sh
index c69d4ad..aa9fc61 100755
--- a/scripts/git-proxy-cmd.sh
+++ b/scripts/git-proxy-cmd.sh
@@ -1,7 +1,7 @@
proxy=${http_proxy#http://}
host=${proxy##*@}
auth=${proxy%@*}
-if test -n "${auth}"; then
+if test "${auth}" != "${proxy}"; then
export HTTP_PROXY_USER=${auth%%:*}
export HTTP_PROXY_PASSWORD=${auth##*:}
fi