summaryrefslogtreecommitdiff
path: root/wd-journal
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-11-05 23:29:17 +0800
committerGuangxiong Lin <[email protected]>2022-11-05 23:31:47 +0800
commit35970f2cf022d5d475a92e3909ad311b38868c65 (patch)
tree101647e2b3c2764c5d4abf6a79d6c05654095b33 /wd-journal
parentc74c64052d9b2579bf6df95fdee4a7ff7cdf8b6f (diff)
downloadwd-0.0.7.tar.gz
wd-0.0.7.tar.bz2
wd-0.0.7.zip
Fix duplicated titles when monthly journal is createdv0.0.7
Diffstat (limited to 'wd-journal')
-rwxr-xr-xwd-journal2
1 files changed, 1 insertions, 1 deletions
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
}