From c85da8a47ed4db70740bdede7dd61cda655a0767 Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Fri, 3 Sep 2021 02:54:15 +0200 Subject: [PATCH] =?UTF-8?q?Skript=20na=20testov=C3=A1n=C3=AD=20mrtvosti=20?= =?UTF-8?q?odkaz=C5=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- checklinks.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 checklinks.sh diff --git a/checklinks.sh b/checklinks.sh new file mode 100755 index 00000000..98c5e4af --- /dev/null +++ b/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/' "$@"