From 97b7d2860af518295c5c5dc6fb2dc3cc842633e2 Mon Sep 17 00:00:00 2001 From: plurpio <148961679+plurpio@users.noreply.github.com> Date: Sun, 29 Sep 2024 05:01:23 +1000 Subject: [PATCH] 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. --- core/tabs/common-script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/tabs/common-script.sh b/core/tabs/common-script.sh index 25c5a71f..b2c991b8 100644 --- a/core/tabs/common-script.sh +++ b/core/tabs/common-script.sh @@ -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 }