mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
Merge pull request #142 from Morganamilo/fix#122
Respect --noconfirm in config
This commit is contained in:
commit
20128f4776
1 changed files with 6 additions and 0 deletions
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 a new issue