Commit bcea076b authored by Vitaly Lipatov's avatar Vitaly Lipatov

gita acl: fix argument order for add/del commands

parent 2c00b868
......@@ -139,9 +139,9 @@ if [ "$1" = "acl" ] ; then
fi
shift
BINARYREPO=$(set_if_matched $1 "Sisyphus [ptc][6-9] [ptc][6-9]\.[0-9]") && shift
COMMAND="$1"
PROJECTNAME="$2"
[ -z "$PROJECTNAME" ] && PROJECTNAME="$COMMAND" && COMMAND="show"
PROJECTNAME="$1"
COMMAND="$2"
[ -z "$COMMAND" ] && COMMAND="show"
OPERAND="$3"
showcmd ssh $GEARHOST acl $BINARYREPO $PROJECTNAME $COMMAND $OPERAND
echo "$GEARHOST:$BINARYREPO ACL for $PROJECTNAME:"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment