sbs

A Simple Blogging System.
git clone https://git.sr.ht/~jbauer/sbs
Log | Files | Refs | README | LICENSE

commit 4ff916dd83e9241272b4a636266aea3732e1071c
parent 244c11495e02dcb0c315bd235a610cecdc5175f6
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Tue, 22 Feb 2022 14:01:28 -0500

Add quotes to prevent shell globbing

Diffstat:
Msbs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbs b/sbs @@ -101,7 +101,7 @@ if [ "$1" = "genfeed" ]; then if [ -n "$(lowdown -X draft "$file" 2>/dev/null)" ]; then continue fi - printf "%s %s\n" "$(date -d $(lowdown -X date "$file") +"%s")" \ + printf "%s %s\n" "$(date -d "$(lowdown -X date "$file")" +"%s")" \ "$file" >> "$tmp" done for file in $(sort -rn "$tmp" | cut -d' ' -f2); do