diff --git a/plugins/getplugs b/plugins/getplugs index 42d5400d..b7fa67d0 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