checklinks: Ignorujeme, že wget neskončí úspěšně

This commit is contained in:
Pavel "LEdoian" Turinsky 2021-11-02 00:22:03 +01:00
parent cbed53c65f
commit 542ae6b7ef

View file

@ -12,7 +12,7 @@ logfile="$(pwd)/wget.log.$(date +%FT%T)"
tmp=$(mktemp --directory) tmp=$(mktemp --directory)
cd "$tmp" 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)" echo "Result: (a last few lines of the file $logfile)"
sed -ne '/^Found [0-9]* broken links/,$ p' "$logfile" sed -ne '/^Found [0-9]* broken links/,$ p' "$logfile"