From 94047d1bc49ccd68f889ddbf70f9f20ebcbfef71 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 25 Mar 2019 18:38:29 -0300 Subject: Adds PUSH_AFTER_ENCRYPT setting --- lib/keyringer/actions/encrypt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/keyringer/actions/encrypt b/lib/keyringer/actions/encrypt index e25ad6c..c1d5601 100755 --- a/lib/keyringer/actions/encrypt +++ b/lib/keyringer/actions/encrypt @@ -126,7 +126,13 @@ 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" + FILE="`echo $FILE | sed -e 's|/./||'`" + echo Changes for keys/$FILE | keyringer_exec git "$BASEDIR" commit -F - +fi + +# Optional push depending on the value of this setting +if [ "$PUSH_AFTER_ENCRYPT" == "yes" ]; then + keyringer_exec git "$BASEDIR" push fi # Done -- cgit v1.2.3