diff options
Diffstat (limited to 'modules/atomfeed.source.sh')
| -rw-r--r-- | modules/atomfeed.source.sh | 2 |
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" |
