главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
path: root/bb.sh
diff options
context:
space:
mode:
authorGuilherme Garcia <gui.garcia67@gmail.com>2022-01-28 00:45:09 -0300
committerGuilherme Garcia <gui.garcia67@gmail.com>2022-01-28 00:45:09 -0300
commit9a94374fcd1f9df758c208c5398eb6ee70dafa2b (patch)
treed5ed03aada4ae5351116a7d03bcdf82d15f750d7 /bb.sh
parent1715ee1d605e4619a377dcbd14e6c004d9db4402 (diff)
Remove .html extension from list of tags in terminal
Diffstat (limited to 'bb.sh')
-rwxr-xr-xbb.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bb.sh b/bb.sh
index 9d8e645..12477d6 100755
--- a/bb.sh
+++ b/bb.sh
@@ -869,7 +869,7 @@ list_tags() {
[[ -f "$i" ]] || break
nposts=$(grep -c "<\!-- text begin -->" "$i")
tagname=${i#"$prefix_tags"}
- tagname=${tagname#.html}
+ tagname=${tagname%.html}
((nposts > 1)) && word=$template_tags_posts || word=$template_tags_posts_singular
line="$tagname # $nposts # $word"
lines+=$line\\n