mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-21 21:09:42 +00:00
fix: do not hard depend on sudo being installed (#671)
similar to #193 the checkCommandRequirements function under checkEnv hard-depended on sudo, although doas can be picked as an $ESCALATION_TOOL.
This commit is contained in:
parent
ce2d2d0ec9
commit
97b7d2860a
|
@ -125,11 +125,11 @@ checkDistro() {
|
|||
}
|
||||
|
||||
checkEnv() {
|
||||
checkCommandRequirements 'curl groups sudo'
|
||||
checkEscalationTool
|
||||
checkCommandRequirements "curl groups $ESCALATION_TOOL"
|
||||
checkPackageManager 'nala apt-get dnf pacman zypper'
|
||||
checkCurrentDirectoryWritable
|
||||
checkSuperUser
|
||||
checkDistro
|
||||
checkEscalationTool
|
||||
checkAURHelper
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user