From 0e4caa074d62c673a26e7b118a9afc6fb1c92ebb Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 12 May 2021 09:06:22 +0100 Subject: make shellcheck happy again, also add a shellcheck makefile target --- modules/atomfeed.source.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/atomfeed.source.sh') 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 <