diff options
Diffstat (limited to 'lib/keyringer/actions/encrypt')
-rwxr-xr-x | lib/keyringer/actions/encrypt | 8 |
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 |