From: Silvio Rhatto Date: Mon, 25 Mar 2019 21:38:29 +0000 (-0300) Subject: Adds PUSH_AFTER_ENCRYPT setting X-Git-Tag: 0.5.5~3 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=94047d1bc49ccd68f889ddbf70f9f20ebcbfef71;p=keyringer.git Adds PUSH_AFTER_ENCRYPT setting --- 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