Skip to content

Commit

Permalink
avoid "'sh' is not recognized..." error in mtr on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Sep 8, 2023
1 parent cb384d0 commit 0b6de3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/hashicorp_key_management/mysql-test/vault/suite.pm
Expand Up @@ -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 {};

0 comments on commit 0b6de3d

Please sign in to comment.