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
+2 -10
View File
@@ -67,16 +67,8 @@ depends=(
if err != nil {
other.PrintError("Failed to build+install custom base-devel", 1)
}
cmd = exec.Command("pacman", "-S", "opendoas", "--noconfirm")
err = cmd.Run()
if err != nil {
other.PrintError("Failed to install opendoas", 1)
}
cmd = exec.Command("pacman", "-R", "sudo", "--noconfirm")
err = cmd.Run()
if err != nil {
other.PrintError("Failed to remove sudo", 1)
}
managePackage("-S", "opendoas")
managePackage("-R", "sudo")
if !doAll {
break