mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 09:07:21 +01:00
Fix handling of -- in parser
This commit is contained in:
parent
0dc94a2c31
commit
85a99198c3
2
cmd.go
2
cmd.go
@ -699,6 +699,8 @@ func passToPacman(args *arguments) error {
|
|||||||
argArr = append(argArr, "--noconfirm")
|
argArr = append(argArr, "--noconfirm")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
argArr = append(argArr, "--")
|
||||||
|
|
||||||
argArr = append(argArr, args.formatTargets()...)
|
argArr = append(argArr, args.formatTargets()...)
|
||||||
|
|
||||||
cmd = exec.Command(argArr[0], argArr[1:]...)
|
cmd = exec.Command(argArr[0], argArr[1:]...)
|
||||||
|
@ -270,6 +270,10 @@ func (parser *arguments) formatArgs() (args []string) {
|
|||||||
args = append(args, op)
|
args = append(args, op)
|
||||||
|
|
||||||
for option, arg := range parser.options {
|
for option, arg := range parser.options {
|
||||||
|
if option == "--" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
formatedOption := formatArg(option)
|
formatedOption := formatArg(option)
|
||||||
args = append(args, formatedOption)
|
args = append(args, formatedOption)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user