From 3d03d7498af9b1d846d80c87d39fc7aad1101255 Mon Sep 17 00:00:00 2001 From: cperciva Date: Fri, 5 May 2006 03:44:13 +0000 Subject: Fix the test for whether ${HTTP_PROXY} is set -- I got it backwards. Pointy hat to: cperciva Pointed out by: pjd --- usr.sbin/portsnap/portsnap/portsnap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/portsnap/portsnap/portsnap.sh') 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` -- cgit v1.1