Fix .orig handling. - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 81eb04e6e1565a3b2ba24c5311fbcc45d312ac83 DIR parent 4a9225fa4431b8636e9d75ce07f9f508ae72c74b HTML Author: Annna Robert-Houdin <annna@bitreich.org> 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(-) --- DIR 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}"