|
|
@ -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" |
|
|
|