diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-11-26 13:14:17 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-11-26 13:14:17 -0200 |
commit | 5ec8ec353ecd15b3d71479d2fcca3346059f955c (patch) | |
tree | 01d10d5b54b5e9744ad4899b9bbc443931cffa34 | |
parent | 812ab3dc1031f34dc001339f2cb9864fd7c09a70 (diff) | |
download | keyringer-5ec8ec353ecd15b3d71479d2fcca3346059f955c.tar.gz keyringer-5ec8ec353ecd15b3d71479d2fcca3346059f955c.tar.bz2 |
Pass options to git-rm at del action
-rwxr-xr-x | lib/keyringer/actions/del | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/keyringer/actions/del b/lib/keyringer/actions/del index babd212..d160ac4 100755 --- a/lib/keyringer/actions/del +++ b/lib/keyringer/actions/del @@ -10,7 +10,13 @@ source "$LIB" || exit 1 # Get file keyringer_get_file "$2" +# Set options +if [ ! -z "$3" ]; then + shift 2 + OPTS="$*" +fi + # Remove if [ -d "$BASEDIR/.git" ]; then - keyringer_exec git "$BASEDIR" rm "keys/$FILE" + keyringer_exec git "$BASEDIR" rm $OPTS "keys/$FILE" fi |