Jiná lokace logfilu…

This commit is contained in:
Pavel "LEdoian" Turinsky 2021-09-03 02:58:41 +02:00
parent c85da8a47e
commit 4032ff8fa5

View file

@ -3,7 +3,8 @@
# Props to https://www.commandlinefu.com/commands/view/8234/check-broken-links-using-wget-as-a-spider
set -eu
logfile="$(pwd)/wget.log.$(date +%FT%T)"
tmp=$(mktemp --directory)
cd "$tmp"
wget --spider -o wget.log -r -p -X '/soustredeni/*/fotogalerie/' "$@"
wget --spider -o "$logfile" -r -p -X '/soustredeni/*/fotogalerie/' "$@"