Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix .orig handling. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 81eb04e6e1565a3b2ba24c5311fbcc45d312ac83
parent 4a9225fa4431b8636e9d75ce07f9f508ae72c74b
Author: Annna Robert-Houdin <[email protected]>
Date: Thu, 4 Aug 2022 19:45:52 +0200
Fix .orig handling.
Diffstat:
M annna-add-hashtag | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/annna-add-hashtag b/annna-add-hashtag
@@ -324,7 +324,7 @@ inserttag() {
stag="$(printf "${tag}\n" | cut -c 2-)"
cd "${memecachedir}"
- tagfile="$(basename "$(find . -name "${stag}.*" | grep -v .orig)")"
+ tagfile="$(basename "$(find . -name "${stag}.*" | grep -v '\.orig$')")"
tagtype="$(get-tagtype "${tagfile}")"
memecacheuri="gopher://bitreich.org/${tagtype}/memecache/${tagfile}"
@@ -350,7 +350,7 @@ indextag() {
stag="$(printf "${tag}\n" | cut -c 2-)"
cd "${memecachedir}"
- tagfile="$(basename "$(find . -name "${stag}.*" | grep -v .orig)")"
+ tagfile="$(basename "$(find . -name "${stag}.*" | grep -v '\.orig$')")"
checksum="$(sha512sum "${tagfile}" | cut -d' ' -f 1)"
tagtype="$(get-tagtype "${tagfile}")"
memecacheuri="gopher://bitreich.org/${tagtype}/memecache/${tagfile}"
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.