summaryrefslogtreecommitdiffstats
path: root/usr.sbin/portsnap/portsnap/portsnap.sh
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2006-05-05 03:44:13 +0000
committercperciva <cperciva@FreeBSD.org>2006-05-05 03:44:13 +0000
commit3d03d7498af9b1d846d80c87d39fc7aad1101255 (patch)
treec71195ca06ff05e88d7ca8e2bce1083419a75b01 /usr.sbin/portsnap/portsnap/portsnap.sh
parent75ca9e93988c2afb0ba9dce42857b6a7411e67be (diff)
downloadFreeBSD-src-3d03d7498af9b1d846d80c87d39fc7aad1101255.zip
FreeBSD-src-3d03d7498af9b1d846d80c87d39fc7aad1101255.tar.gz
Fix the test for whether ${HTTP_PROXY} is set -- I got it backwards.
Pointy hat to: cperciva Pointed out by: pjd
Diffstat (limited to 'usr.sbin/portsnap/portsnap/portsnap.sh')
-rw-r--r--usr.sbin/portsnap/portsnap/portsnap.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/portsnap/portsnap/portsnap.sh b/usr.sbin/portsnap/portsnap/portsnap.sh
index d1ff805..8904aea 100644
--- a/usr.sbin/portsnap/portsnap/portsnap.sh
+++ b/usr.sbin/portsnap/portsnap/portsnap.sh
@@ -347,7 +347,7 @@ fetch_pick_server_init() {
# Generate a random seed for use in picking mirrors. If HTTP_PROXY
# is set, this will be used to generate the seed; otherwise, the seed
# will be random.
- if [ -z "${HTTP_PROXY}" ]; then
+ if [ -n "${HTTP_PROXY}" ]; then
RANDVALUE=`sha256 -qs "${HTTP_PROXY}" |
tr -d 'a-f' |
cut -c 1-9`
OpenPOWER on IntegriCloud