From 0b6de3d1ceb9a8943d62f0f6d7bf26363189bcb1 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Tue, 29 Aug 2023 11:24:16 +0200 Subject: [PATCH] avoid "'sh' is not recognized..." error in mtr on windows --- plugin/hashicorp_key_management/mysql-test/vault/suite.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/hashicorp_key_management/mysql-test/vault/suite.pm b/plugin/hashicorp_key_management/mysql-test/vault/suite.pm index 1d78985f363e4..fce1737311dad 100644 --- a/plugin/hashicorp_key_management/mysql-test/vault/suite.pm +++ b/plugin/hashicorp_key_management/mysql-test/vault/suite.pm @@ -4,13 +4,13 @@ package My::Suite::Vault; use strict; -return "Hashicorp Vault key management utility not found" - unless `sh -c "command -v vault"`; - return "You need to set the value of the VAULT_ADDR variable" unless $ENV{VAULT_ADDR}; return "You need to set the value of the VAULT_TOKEN variable" unless $ENV{VAULT_TOKEN}; +return "Hashicorp Vault key management utility not found" + unless `sh -c "command -v vault"`; + bless {};