mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
Merge pull request #142 from Morganamilo/fix#122
Respect --noconfirm in config
This commit is contained in:
commit
20128f4776
6
cmd.go
6
cmd.go
@ -664,6 +664,11 @@ func passToPacman(args *arguments) error {
|
||||
|
||||
argArr = append(argArr, config.PacmanBin)
|
||||
argArr = append(argArr, cmdArgs.formatGlobals()...)
|
||||
|
||||
if config.NoConfirm {
|
||||
argArr = append(argArr, "--noconfirm")
|
||||
}
|
||||
|
||||
argArr = append(argArr, args.formatArgs()...)
|
||||
if config.NoConfirm {
|
||||
argArr = append(argArr, "--noconfirm")
|
||||
@ -671,6 +676,7 @@ func passToPacman(args *arguments) error {
|
||||
|
||||
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 New Issue
Block a user