Add utility function for simple package management

This commit is contained in:
2025-09-28 02:17:31 -04:00
parent 8b265cd3d9
commit f84f304466
6 changed files with 27 additions and 90 deletions
+1 -5
View File
@@ -38,11 +38,7 @@ func removals() {
target = "modemmanager"
}
if !doAll {
cmd := exec.Command("pacman", "-Rcns", target, "--noconfirm")
err := cmd.Run()
if err != nil {
other.PrintError("Failed to remove "+target, 1)
}
managePackage("-Rcns", target)
}
}
}