From d1fb3857d9e74b6797b12ed803fedf643d0f56d8 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 28 Nov 2023 15:28:35 +0300 Subject: [PATCH] wip --- vault-github/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vault-github/run.sh b/vault-github/run.sh index 55642c6..ce3e920 100644 --- a/vault-github/run.sh +++ b/vault-github/run.sh @@ -41,7 +41,7 @@ fi # Check if vault is installed and has the correct version installation_needed=1 -if command -v vault &> /dev/null; then +if command -v vault >/dev/null 2>&1; then CURRENT_VERSION=$(vault version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+') if [ "$${CURRENT_VERSION}" = "${INSTALL_VERSION}" ]; then printf "Vault version %s is already installed and up-to-date.\n\n" "$${CURRENT_VERSION}"