aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-03-25 18:38:29 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-03-25 18:38:29 -0300
commit94047d1bc49ccd68f889ddbf70f9f20ebcbfef71 (patch)
tree331015e659d964f20bda0c07f2bf150866fe84ef
parentd51d6d86ce731c85273964fb62b1b95d025caff9 (diff)
downloadkeyringer-94047d1bc49ccd68f889ddbf70f9f20ebcbfef71.tar.gz
keyringer-94047d1bc49ccd68f889ddbf70f9f20ebcbfef71.tar.bz2
Adds PUSH_AFTER_ENCRYPT setting
-rwxr-xr-xlib/keyringer/actions/encrypt8
1 files changed, 7 insertions, 1 deletions
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