From: Silvio Rhatto Date: Tue, 26 Nov 2013 15:14:17 +0000 (-0200) Subject: Pass options to git-rm at del action X-Git-Tag: 0.2.9~7 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=5ec8ec353ecd15b3d71479d2fcca3346059f955c;p=keyringer.git Pass options to git-rm at del action --- 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