checklinks: Ignorujeme, že wget neskončí úspěšně
This commit is contained in:
parent
cbed53c65f
commit
542ae6b7ef
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue