Browse Source

Skript na testování mrtvosti odkazů

middleware_test
Pavel "LEdoian" Turinsky 3 years ago
parent
commit
c85da8a47e
  1. 9
      checklinks.sh

9
checklinks.sh

@ -0,0 +1,9 @@
#!/bin/sh
# Props to https://www.commandlinefu.com/commands/view/8234/check-broken-links-using-wget-as-a-spider
set -eu
tmp=$(mktemp --directory)
cd "$tmp"
wget --spider -o wget.log -r -p -X '/soustredeni/*/fotogalerie/' "$@"
Loading…
Cancel
Save