From 00aa2e7efcf6b1f0b36257505011075abfbcbb53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Fri, 15 Oct 2021 09:51:54 +0000 Subject: [PATCH] fix: selfMFASetupTOTP: bad return func --- bin/plugin/open/selfMFASetupTOTP | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/plugin/open/selfMFASetupTOTP b/bin/plugin/open/selfMFASetupTOTP index d98a725..81573b1 100755 --- a/bin/plugin/open/selfMFASetupTOTP +++ b/bin/plugin/open/selfMFASetupTOTP @@ -39,7 +39,7 @@ if ($ENV{'OSH_IN_INTERACTIVE_SESSION'}) { # first, check if the google-authenticator we have supports --issuer, if not, just omit it, it's not a deal-breaker $fnret = OVH::Bastion::execute(cmd => ['google-authenticator', '-h'], must_succeed => 1); -$fnret or HEXIT($fnret); +$fnret or osh_exit($fnret); my @additional_params; if (grep { /--issuer/ } @{$fnret->value->{'stdout'}}) { push @additional_params, "--issuer=" . OVH::Bastion::config('bastionName')->value;