mirror of
https://github.com/rwinkhart/cachyos-postinstall-helper.git
synced 2026-09-02 15:17:39 -04:00
Add utility function for simple package management
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user