Skip to content
Snippets Groups Projects
Verified Commit c46d0e77 authored by rhatto's avatar rhatto
Browse files

Adds COMMIT_AFTER_ENCRYPT setting

parent bfb19958
Branches
Tags
No related merge requests found
2019-03-25 - Silvio Rhatto <rhatto@riseup.net>
Adds COMMIT_AFTER_ENCRYPT setting
2019-01-29 - 0.5.4 - Silvio Rhatto <rhatto@riseup.net>
Use --no-encrypt-to GnuPG option to strictly respect the recipients file
......
......@@ -124,5 +124,10 @@ if [ -d "$BASEDIR/.git" ]; then
keyringer_exec git "$BASEDIR" add "keys/$FILE"
fi
# Optional commit depending on the value of this setting
if [ "$COMMIT_AFTER_ENCRYPT" == "yes" ]; then
keyringer_exec git "$BASEDIR" commit -m "Changes for $FILE"
fi
# Done
exit "$?"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment