From 542ae6b7efc1f230d1b45d0e2b2c2490a3d263c6 Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Tue, 2 Nov 2021 00:22:03 +0100 Subject: [PATCH] =?UTF-8?q?checklinks:=20Ignorujeme,=20=C5=BEe=20wget=20ne?= =?UTF-8?q?skon=C4=8D=C3=AD=20=C3=BAsp=C4=9B=C5=A1n=C4=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- checklinks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"