From 995140a869c86929318d990232aff50feb9f11b2 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 19 May 2021 10:06:02 +0100 Subject: some refactoring and also ensured that it works on macOS (given Bash 5 is installed) --- packages/atomfeed.source.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/atomfeed.source.sh') diff --git a/packages/atomfeed.source.sh b/packages/atomfeed.source.sh index 6d5a8f47..f17b00fb 100644 --- a/packages/atomfeed.source.sh +++ b/packages/atomfeed.source.sh @@ -6,7 +6,7 @@ atomfeed::meta () { log VERBOSE "Generating meta info for post $gmi_file_path" local is_draft=no - if grep -E -q '\.draft\.meta$' <<< "$meta_file"; then + if $GREP -E -q '\.draft\.meta$' <<< "$meta_file"; then is_draft=yes fi @@ -75,6 +75,7 @@ ATOMHEADER while read -r gmi_file; do # Load cached meta information about the post. source <(atomfeed::meta "$gemfeed_dir/$gmi_file") + # Get HTML content for the feed local content="$(atomfeed::content "$gemfeed_dir/$gmi_file")" -- cgit v1.2.3