From: ian Date: Wed, 14 Apr 2004 14:03:50 +0000 (+0000) Subject: want http_proxy X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=363a01f7eb250bb5e6cb33a7eae4865855aa67c7;p=trains.git want http_proxy --- diff --git a/farnell/farnell-find b/farnell/farnell-find index b31fef2..5087eac 100755 --- a/farnell/farnell-find +++ b/farnell/farnell-find @@ -47,6 +47,7 @@ sub by_item ($) { $chr->{Shortcode}= $1.$2; $url .= $chr->{Shortcode}; if (!-f "farn.$itemcode") { + die "want http_proxy\n" unless exists $ENV{'http_proxy'}; system "wget -otmp.farnerr.$itemcode -Otmp.farn.$itemcode $url"; if ($?) { system "cat tmp.farnerr.$itemcode"; die; } rename "tmp.farn.$itemcode", "farn.$itemcode" or die $!;