mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
parent
55f687e463
commit
c5c9323d30
|
@ -13,9 +13,9 @@ is_cmd_exists () {
|
|||
echo $?
|
||||
}
|
||||
|
||||
if [ "$(is_cmd_exists sudo)" == "0" ]; then
|
||||
if [ "$(is_cmd_exists sudo)" -eq "0" ]; then
|
||||
sucmd=sudo
|
||||
elif [ "$(is_cmd_exists doas)" == "0" ]; then
|
||||
elif [ "$(is_cmd_exists doas)" -eq "0" ]; then
|
||||
sucmd=doas
|
||||
else
|
||||
sucmd=: # noop
|
||||
|
|
Loading…
Reference in a new issue