diff options
author | 2019-11-01 17:58:32 +0200 | |
---|---|---|
committer | 2019-11-01 21:28:32 +0530 | |
commit | c5c9323d3080854528f7c122a71b1285b2110fc7 (patch) | |
tree | 5f7846adbf2e11c0253b3efe3447ffc7bbde1e7c /plugins/getplugs | |
parent | 55f687e463c3509fdc18d69dc44a01a901fc58cd (diff) | |
download | nnn-c5c9323d3080854528f7c122a71b1285b2110fc7.tar.gz |
Diffstat (limited to 'plugins/getplugs')
-rwxr-xr-x | plugins/getplugs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/getplugs b/plugins/getplugs index 42d5400..b7fa67d 100755 --- a/plugins/getplugs +++ b/plugins/getplugs @@ -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 |