diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2021-05-19 10:06:02 +0100 |
|---|---|---|
| committer | Paul Buetow <git@mx.buetow.org> | 2021-05-21 05:11:05 +0100 |
| commit | 641a95de7bdd64963666cca6b96387ab5d9245e2 (patch) | |
| tree | 633a546aff999286dd4c6073726ed6a037fed58b /packages/atomfeed.source.sh | |
| parent | 05c68a1ed420243e484003df9bb281b79303c604 (diff) | |
some refactoring and also ensured that it works on macOS (given Bash 5 is installed)
Diffstat (limited to 'packages/atomfeed.source.sh')
| -rw-r--r-- | packages/atomfeed.source.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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")" |
