diff --git a/checklinks.sh b/checklinks.sh index 19557e3a..71b218f2 100755 --- a/checklinks.sh +++ b/checklinks.sh @@ -12,7 +12,7 @@ logfile="$(pwd)/wget.log.$(date +%FT%T)" tmp=$(mktemp --directory) cd "$tmp" -wget --spider -o "$logfile" -r -p -X '/soustredeni/*/fotogalerie/' "$@" +wget --spider -o "$logfile" -r -p -X '/soustredeni/*/fotogalerie/' "$@" || true # wget nejspíš skončí s chybou, že něco nestáhl… echo "Result: (a last few lines of the file $logfile)" sed -ne '/^Found [0-9]* broken links/,$ p' "$logfile"