diff options
Diffstat (limited to 'tests/bin')
-rwxr-xr-x | tests/bin/wget | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/bin/wget b/tests/bin/wget index 5efc612..77144b9 100755 --- a/tests/bin/wget +++ b/tests/bin/wget @@ -63,8 +63,13 @@ while true; do shift done +if [ $# -eq 0 ]; then + usage "1" >&2 +fi + for url; do case "$url" in + "") msg "bad address"; exit 1;; *fail*) msg "bad address"; exit 1;; *404*) msg "wget: server returned error: HTTP/1.1 404 Not Found"; exit 1;; esac |