mirror of
https://github.com/Jguer/yay
synced 2024-09-14 13:51:12 +00:00
c8fcdeae5b
When sudobin/custom wrapper is not available try the following in order: - sudo - doas - pkexec - su
12 lines
244 B
Go
12 lines
244 B
Go
package settings
|
|
|
|
import "fmt"
|
|
|
|
type ErrPrivilegeElevatorNotFound struct {
|
|
confValue string
|
|
}
|
|
|
|
func (e *ErrPrivilegeElevatorNotFound) Error() string {
|
|
return fmt.Sprintf("unable to find a privilege elevator, config value: %s", e.confValue)
|
|
}
|