summaryrefslogtreecommitdiff
path: root/modules/atomfeed.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-05-12 09:06:22 +0100
committerPaul Buetow <git@mx.buetow.org>2021-05-21 05:11:04 +0100
commitbdf56f978f490f97e89afb6650e3a1913abd8e28 (patch)
tree3f673b8e5d78c3ca9326a9e592c3616f46ab2051 /modules/atomfeed.source.sh
parenta453bf2f909e0ea01b0649ce8dc42d54689f738f (diff)
make shellcheck happy again, also add a shellcheck makefile target
Diffstat (limited to 'modules/atomfeed.source.sh')
-rw-r--r--modules/atomfeed.source.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/atomfeed.source.sh b/modules/atomfeed.source.sh
index 01608fe..e940211 100644
--- a/modules/atomfeed.source.sh
+++ b/modules/atomfeed.source.sh
@@ -16,7 +16,7 @@ atomfeed::meta () {
# Extract first paragraph from Gemtext
local summary=$($SED -n '/^[A-Z]/ { p; q; }' "$gmi_file_path" | tr '"' "'")
# Extract the date from the file name.
- local filename_date=$(basename $gmi_file_path | cut -d- -f1,2,3)
+ local filename_date=$(basename "$gmi_file_path" | cut -d- -f1,2,3)
local date=$($DATE --iso-8601=seconds --date "$filename_date $($DATE +%H:%M:%S)")
cat <<META | tee "$meta_file"