Skip confirmation when installing packages

This commit is contained in:
Riyyi
2026-04-18 20:35:18 +02:00
parent a934dfa1f0
commit c7bed95107
+1 -1
View File
@@ -22,7 +22,7 @@ func SyncPackages(packages []string, logWriter io.Writer) error {
logWriter = os.Stderr
}
args := append([]string{"-S", "--needed"}, packages...)
args := append([]string{"-S", "--needed", "--noconfirm"}, packages...)
cmd := exec.Command("pacman", args...)
cmd.Stdout = logWriter
cmd.Stderr = logWriter