From 946854aaf8d80c0a6cb1a6b1cf4da1d3d8d4fc2a Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sun, 29 Dec 2013 15:00:55 +0100 Subject: check-mirrors: Use curl(1)'s --ftp-method 'nocwd' Tell curl(1) to use --ftp-method 'nocwd', as all our mirrors support it. See the man page for details. diff --git a/bin/check-mirrors b/bin/check-mirrors index e82e2cd..41727e9 100755 --- a/bin/check-mirrors +++ b/bin/check-mirrors @@ -94,7 +94,7 @@ for mirror in $mirrors do url="${mirror%/}/timestamp" - if curl -s -S -O -m 600 "$url" >'curl.log' 2>&1 + if curl -s -S -O -m 600 --ftp-method 'nocwd' "$url" >'curl.log' 2>&1 then cmp -s 'expected' 'timestamp' \ || echo >&2 "$mirror is outdated ($(cat 'timestamp'))." -- cgit v0.10-9-g596f