avoid "'sh' is not recognized..." error in mtr on windows

This commit is contained in:
Sergei Golubchik 2023-08-29 11:24:16 +02:00
parent cb384d0d04
commit 0b6de3d1ce

View File

@ -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 {};