diff --git a/cmd.go b/cmd.go index 0bd1e3cc..35e70f9a 100644 --- a/cmd.go +++ b/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