From 67147b88cbc70f146978163f18771097cdb42e22 Mon Sep 17 00:00:00 2001 From: JohnTheCoolingFan <43478602+JohnTheCoolingFan@users.noreply.github.com> Date: Mon, 20 May 2024 14:54:27 +0300 Subject: [PATCH] Revert "Add doas support to is_root_or_sudo_prefix" This reverts commit 324647c039f31ea27dd83252dbbaf7d903800f00. --- lib/functions/host/host-utils.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/functions/host/host-utils.sh b/lib/functions/host/host-utils.sh index 362035dc67..fd20f63720 100644 --- a/lib/functions/host/host-utils.sh +++ b/lib/functions/host/host-utils.sh @@ -96,10 +96,6 @@ function is_root_or_sudo_prefix() { # sudo binary found in path, use it. display_alert "EUID is not 0" "sudo binary found, using it" "debug" __my_sudo_prefix="sudo" - elif [[ -n "$(command -v doas)" ]]; then - # doas binary found in path, use it. - display_alert "EUID is not 0" "doas binary found, using it" "debug" - __my_sudo_prefix="sudo" else # No root and no sudo binary. Bail out exit_with_error "EUID is not 0 and no sudo binary found - Please install sudo or run as root"