mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
Respect --noconfirm in config
This commit is contained in:
parent
0f0100b4d0
commit
519014af3d
1 changed files with 6 additions and 0 deletions
6
cmd.go
6
cmd.go
|
@ -664,9 +664,15 @@ func passToPacman(args *arguments) error {
|
|||
|
||||
argArr = append(argArr, "pacman")
|
||||
argArr = append(argArr, cmdArgs.formatGlobals()...)
|
||||
|
||||
if config.NoConfirm {
|
||||
argArr = append(argArr, "--noconfirm")
|
||||
}
|
||||
|
||||
argArr = append(argArr, args.formatArgs()...)
|
||||
argArr = append(argArr, args.formatTargets()...)
|
||||
|
||||
|
||||
cmd = exec.Command(argArr[0], argArr[1:]...)
|
||||
|
||||
cmd.Stdin, cmd.Stdout, cmd.Stderr = os.Stdin, os.Stdout, os.Stderr
|
||||
|
|
Loading…
Reference in a new issue