Skript na testování mrtvosti odkazů
This commit is contained in:
parent
1a7132a8b8
commit
c85da8a47e
1 changed files with 9 additions and 0 deletions
9
checklinks.sh
Executable file
9
checklinks.sh
Executable 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/' "$@"
|
Loading…
Reference in a new issue