From 466f87524cb879d9aa5722e71aaaf2d9f805f1d3 Mon Sep 17 00:00:00 2001 From: Plurpio <148961679+plurpio@users.noreply.github.com> Date: Wed, 25 Sep 2024 20:49:49 +1000 Subject: [PATCH] fix: do not hard depend on sudo being installed 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 25c5a71fa..b2c991b89 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 }