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:
plurpio 2024-09-29 05:01:23 +10:00 committed by GitHub
parent ce2d2d0ec9
commit 97b7d2860a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,11 +125,11 @@ checkDistro() {
} }
checkEnv() { checkEnv() {
checkCommandRequirements 'curl groups sudo' checkEscalationTool
checkCommandRequirements "curl groups $ESCALATION_TOOL"
checkPackageManager 'nala apt-get dnf pacman zypper' checkPackageManager 'nala apt-get dnf pacman zypper'
checkCurrentDirectoryWritable checkCurrentDirectoryWritable
checkSuperUser checkSuperUser
checkDistro checkDistro
checkEscalationTool
checkAURHelper checkAURHelper
} }