diff --git a/cmd.go b/cmd.go index 3f2f1f69..b0d02be6 100644 --- a/cmd.go +++ b/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