diff options
| author | Paul Buetow <git@mx.buetow.org> | 2021-05-19 19:46:20 +0100 |
|---|---|---|
| committer | Paul Buetow <git@mx.buetow.org> | 2021-05-21 05:11:05 +0100 |
| commit | afd9fdf7ca0800c457959b540c4378d20f802dc0 (patch) | |
| tree | 64de9c542cbf2c4581c9fc853aeffc105a031111 /packages/atomfeed.source.sh | |
| parent | 95f01eeb99f142fcb8192f5f3368c64cef362f1a (diff) | |
add git package
Diffstat (limited to 'packages/atomfeed.source.sh')
| -rw-r--r-- | packages/atomfeed.source.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/atomfeed.source.sh b/packages/atomfeed.source.sh index f17b00f..4bfc60c 100644 --- a/packages/atomfeed.source.sh +++ b/packages/atomfeed.source.sh @@ -29,7 +29,7 @@ local meta_email="$EMAIL" local meta_title="$title" local meta_summary="$summary. .....to read on please visit my site." META - test $is_draft == no && git add "$meta_file" + test $is_draft == no && git::add meta "$meta_file" return fi @@ -54,7 +54,7 @@ atomfeed::content () { # Generate an atom.xml feed file. atomfeed::generate () { - local -r gemfeed_dir="$CONTENT_DIR/gemtext/gemfeed" + local -r gemfeed_dir="$CONTENT_BASE_DIR/gemtext/gemfeed" local -r atom_file="$gemfeed_dir/atom.xml" local -r now=$($DATE --iso-8601=seconds) log INFO "Generating Atom feed to $atom_file" @@ -114,7 +114,7 @@ ATOMFOOTER if ! diff -u <($SED 3d "$atom_file") <($SED 3d "$atom_file.tmp"); then log INFO 'Feed got something new!' mv "$atom_file.tmp" "$atom_file" - test "$ADD_GIT" == yes && git add "$atom_file" + test "$USE_GIT" == yes && git::add gemtext "$atom_file" else log INFO 'Nothing really new in the feed' rm "$atom_file.tmp" |
