From 35970f2cf022d5d475a92e3909ad311b38868c65 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 5 Nov 2022 23:29:17 +0800 Subject: Fix duplicated titles when monthly journal is created --- wd-journal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wd-journal b/wd-journal index 4fa6f84..28edd46 100755 --- a/wd-journal +++ b/wd-journal @@ -27,7 +27,7 @@ append_line_if_not_in_file () { local filepath=$1 local line=$2 - if ! grep -q "$line" "$filepath"; then + if ! grep -qF "$line" "$filepath"; then echo "$line" >> "$filepath" fi } -- cgit v1.2.3