Skip to content

Commit

Permalink
Fix stupid bug in tag generator script
Browse files Browse the repository at this point in the history
  • Loading branch information
themkat committed Oct 22, 2024
1 parent 61f6734 commit 39ff96f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion org/_posts/2024-10-22-how_i_blog_with_emacs.org
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ If you have ever written a bash script before, you will probably figure out this
#+BEGIN_SRC bash
#!/bin/bash

TAGS=$(cat _posts/*.html | grep 'tags:' | sed -E 's/tags: (.)/\1/' | tr ' ' '\n' | sort -u)
TAGS=$(cat _posts/*.html | grep '^tags:' | sed -E 's/tags: (.)/\1/' | tr ' ' '\n' | sort -u)

mkdir -p tags

Expand Down
2 changes: 1 addition & 1 deletion scripts/create_tag_pages.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

TAGS=$(cat _posts/*.html | grep 'tags:' | sed -E 's/tags: (.)/\1/' | tr ' ' '\n' | sort -u)
TAGS=$(cat _posts/*.html | grep '^tags:' | sed -E 's/tags: (.)/\1/' | tr ' ' '\n' | sort -u)

mkdir -p tags

Expand Down

0 comments on commit 39ff96f

Please sign in to comment.