]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Pass options to git-rm at del action
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 26 Nov 2013 15:14:17 +0000 (13:14 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 26 Nov 2013 15:14:17 +0000 (13:14 -0200)
lib/keyringer/actions/del

index babd2123713993cfad71e7059339a411ff735dba..d160ac4d1972bc7273610a75cc6a0a1cbaeb3fbc 100755 (executable)
@@ -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