Browse Source

Jiná lokace logfilu…

middleware_test
Pavel "LEdoian" Turinsky 3 years ago
parent
commit
4032ff8fa5
  1. 3
      checklinks.sh

3
checklinks.sh

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

Loading…
Cancel
Save