From c5c9323d3080854528f7c122a71b1285b2110fc7 Mon Sep 17 00:00:00 2001 From: Anna Arad <4895022+annagrram@users.noreply.github.com> Date: Fri, 1 Nov 2019 17:58:32 +0200 Subject: [PATCH] Fix bad getplugs script (#370) (#371) --- plugins/getplugs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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