From 4032ff8fa5289a8ee76ed0ae600f33ff98a61ded Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Fri, 3 Sep 2021 02:58:41 +0200 Subject: [PATCH] =?UTF-8?q?Jin=C3=A1=20lokace=20logfilu=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- checklinks.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/checklinks.sh b/checklinks.sh index 98c5e4af..63898075 100755 --- a/checklinks.sh +++ b/checklinks.sh @@ -3,7 +3,8 @@ # Props to https://www.commandlinefu.com/commands/view/8234/check-broken-links-using-wget-as-a-spider set -eu +logfile="$(pwd)/wget.log.$(date +%FT%T)" tmp=$(mktemp --directory) cd "$tmp" -wget --spider -o wget.log -r -p -X '/soustredeni/*/fotogalerie/' "$@" +wget --spider -o "$logfile" -r -p -X '/soustredeni/*/fotogalerie/' "$@"