diff options
| author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-12-29 15:00:55 +0100 |
|---|---|---|
| committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-12-29 15:00:55 +0100 |
| commit | 946854aaf8d80c0a6cb1a6b1cf4da1d3d8d4fc2a (patch) | |
| tree | 7c1ee0fa6cdb42949f84b1f3e2ea34e80a425ba5 | |
| parent | 2a8b57f1858bd57e1f7744612e3e0990a3d4d377 (diff) | |
| download | site-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.
| -rwxr-xr-x | bin/check-mirrors | 2 |
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 | |||
| 94 | do | 94 | do |
| 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'))." |
