summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-12-29 14:00:55 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-12-29 14:00:55 (GMT)
commit946854aaf8d80c0a6cb1a6b1cf4da1d3d8d4fc2a (patch)
tree7c1ee0fa6cdb42949f84b1f3e2ea34e80a425ba5 /bin
parent2a8b57f1858bd57e1f7744612e3e0990a3d4d377 (diff)
downloadsite-946854aaf8d80c0a6cb1a6b1cf4da1d3d8d4fc2a.tar.gz
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.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/check-mirrors2
1 files changed, 1 insertions, 1 deletions
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
94do 94do
95 url="${mirror%/}/timestamp" 95 url="${mirror%/}/timestamp"
96 96
97 if curl -s -S -O -m 600 "$url" >'curl.log' 2>&1 97 if curl -s -S -O -m 600 --ftp-method 'nocwd' "$url" >'curl.log' 2>&1
98 then 98 then
99 cmp -s 'expected' 'timestamp' \ 99 cmp -s 'expected' 'timestamp' \
100 || echo >&2 "$mirror is outdated ($(cat 'timestamp'))." 100 || echo >&2 "$mirror is outdated ($(cat 'timestamp'))."