aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-11-26 13:14:17 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-11-26 13:14:17 -0200
commit5ec8ec353ecd15b3d71479d2fcca3346059f955c (patch)
tree01d10d5b54b5e9744ad4899b9bbc443931cffa34
parent812ab3dc1031f34dc001339f2cb9864fd7c09a70 (diff)
downloadkeyringer-5ec8ec353ecd15b3d71479d2fcca3346059f955c.tar.gz
keyringer-5ec8ec353ecd15b3d71479d2fcca3346059f955c.tar.bz2
Pass options to git-rm at del action
-rwxr-xr-xlib/keyringer/actions/del8
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