Fix bad getplugs script (#370) (#371)

This commit is contained in:
Anna Arad 2019-11-01 17:58:32 +02:00 committed by Mischievous Meerkat
parent 55f687e463
commit c5c9323d30

View file

@ -13,9 +13,9 @@ is_cmd_exists () {
echo $? echo $?
} }
if [ "$(is_cmd_exists sudo)" == "0" ]; then if [ "$(is_cmd_exists sudo)" -eq "0" ]; then
sucmd=sudo sucmd=sudo
elif [ "$(is_cmd_exists doas)" == "0" ]; then elif [ "$(is_cmd_exists doas)" -eq "0" ]; then
sucmd=doas sucmd=doas
else else
sucmd=: # noop sucmd=: # noop