From 3bc33c1b640d56558a62a90a6d451d88b1094775 Mon Sep 17 00:00:00 2001 From: J Guerreiro Date: Fri, 9 Feb 2018 20:27:34 +0000 Subject: [PATCH] Revert "Respect --noconfirm in config" --- cmd.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cmd.go b/cmd.go index b0d02be6..3f2f1f69 100644 --- a/cmd.go +++ b/cmd.go @@ -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