Revert "Add doas support to is_root_or_sudo_prefix"
This reverts commit 324647c039.
This commit is contained in:
parent
7da42c8a42
commit
67147b88cb
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user