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 <paul@buetow.org>2021-05-12 09:06:22 +0100
commit0e4caa074d62c673a26e7b118a9afc6fb1c92ebb (patch)
tree9d7ad5fb4297cee242ce2d00767bf73738df9986 /modules/atomfeed.source.sh
parente569faa91f0f8906c416113010c755fd5cdc79b2 (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 01608fe5..e9402119 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"