Revert "Respect --noconfirm in config"

This commit is contained in:
J Guerreiro 2018-02-09 20:27:34 +00:00 committed by GitHub
parent 20128f4776
commit 3bc33c1b64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

6
cmd.go
View file

@ -664,11 +664,6 @@ 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")
@ -676,7 +671,6 @@ 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