Introduction
Introduction Statistics Contact Development Disclaimer Help
Add annna-check-hashtags command. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit b51b734449e5f65ad0b98b025c0bded5a647c249
parent 7f4c52a91732fe0c0152de04c9bbbdc71427bf08
Author: Annna Robert-Houdin <[email protected]>
Date: Thu, 4 Aug 2022 19:39:09 +0200
Add annna-check-hashtags command.
Thanks adc for the proposal!
Diffstat:
A annna-check-hashtags | 19 +++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/annna-check-hashtags b/annna-check-hashtags
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+memebase="/br/gopher/memecache"
+hashtags="$HOME/bin/modules/hashtags/hashtags.txt"
+
+status=0
+
+while read -r tag url
+do
+ file="${memebase}/${url#gopher://bitreich.org/*/memecache/}"
+ if ! test -f "$file"
+ then
+ printf 'invalid: %s %s %s\n' "$tag" "$url" "$file"
+ status=1
+ fi
+done <$hashtags
+
+exit $status
+
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.