aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <kylie@somas.is>2021-06-28 14:28:34 -0400
committerKylie McClain <kylie@somas.is>2021-06-28 14:28:34 -0400
commit5d66f5c55480c4adeb543756332deddfedd916c5 (patch)
tree7e6b74cc93d0e6523dc509239268dce5229ffc07
parent2ea62a211ab971deecba7cf813fcdcb3a353f98a (diff)
downloadgitolite-admin-5d66f5c55480c4adeb543756332deddfedd916c5.tar.gz
gitolite-admin-5d66f5c55480c4adeb543756332deddfedd916c5.tar.xz
gitolite-admin-5d66f5c55480c4adeb543756332deddfedd916c5.zip
cgit/about.sh: use a glob instead of `tr`
-rwxr-xr-xcgit/filters/about.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/cgit/filters/about.sh b/cgit/filters/about.sh
index 0236b7e..9f8b538 100755
--- a/cgit/filters/about.sh
+++ b/cgit/filters/about.sh
@@ -1,7 +1,7 @@
#!/bin/sh
-case "$(printf '%s' "${1}" | tr '[:upper:]' '[:lower:]')" in
- *.adoc|*.asciidoc)
+case "${1}" in
+ *.[Aa][Dd][Oo][Cc]|*.[Aa][Ss][Cc][Ii][Ii][Dd][Oo][Cc])
exec asciidoctor \
-S secure \
-b html5 \
@@ -11,7 +11,7 @@ case "$(printf '%s' "${1}" | tr '[:upper:]' '[:lower:]')" in
-o - \
-
;;
- *.md|*.mkd|*.markdown)
+ *.[Mm][Dd]|*.[Mm][Kk][Dd]|*.[Mm][Aa][Rr][Kk][Dd][Oo][Ww][Nn])
exec cmark-gfm \
-t html \
--width 0 \