[gimp-web-devel/hugo: 11/16] tool for finding link rot
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web-devel/hugo: 11/16] tool for finding link rot
- Date: Sat, 6 Aug 2022 14:04:34 +0000 (UTC)
commit 913e7491a5ed7e9595557a4f0c9f1312ec9938dd
Author: robin-swift <robinswiftart gmail com>
Date: Wed Jul 27 16:27:42 2022 +0100
tool for finding link rot
scripts/link_rot.sh | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
---
diff --git a/scripts/link_rot.sh b/scripts/link_rot.sh
new file mode 100644
index 0000000..f09265d
--- /dev/null
+++ b/scripts/link_rot.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+function find_link_rot () {
+wget -r https://developer.gimp.org/
+
+for file in `find developer.gimp.org`
+do
+ URL="$1/${file:19}"
+ curl --head --silent --fail $URL &> /dev/null
+ if [ $? -ne 0 ]
+ then
+ echo "The URL $URL is missing."
+ fi
+done
+}
+
+find_link_rot http://localhost:1313
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]