diff --git a/checklinks.sh b/checklinks.sh index 98c5e4af..63898075 100755 --- a/checklinks.sh +++ b/checklinks.sh @@ -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/' "$@"