improv: check doas first

This commit is contained in:
iff 2023-07-31 02:23:19 +02:00
parent ad0eaa17fc
commit 982149802a
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ fn shell_default_history_file(shell: &str) -> String {
}
pub fn get_privilege() -> Option<String> {
let list = vec!["sudo", "doas"];
let list = vec!["doas", "sudo"];
for command in list {
if std::process::Command::new(command).output().is_ok() {
return Some(command.to_string());