Skript na testování mrtvosti odkazů

This commit is contained in:
Pavel "LEdoian" Turinsky 2021-09-03 02:54:15 +02:00
parent 1a7132a8b8
commit c85da8a47e

9
checklinks.sh Executable file
View file

@ -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/' "$@"