Revert "Add doas support to is_root_or_sudo_prefix"

This reverts commit 324647c039.
This commit is contained in:
JohnTheCoolingFan 2024-05-20 14:54:27 +03:00 committed by Igor
parent 7da42c8a42
commit 67147b88cb

View File

@ -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"