From ec3ac40f9dac77e8daba35e1871266ac476428b2 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Wed, 14 Feb 2024 15:52:03 +0300 Subject: [PATCH] Update run.sh --- 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 b0f9e0f..e8f5f52 100644 --- a/vault-github/run.sh +++ b/vault-github/run.sh @@ -34,7 +34,7 @@ unzip_safe() { install() { # Fetch the latest version of Vault if INSTALL_VERSION is 'latest' if [ "$${INSTALL_VERSION}" = "latest" ]; then - LATEST_VERSION=$(curl -s https://releases.hashicorp.com/vault/ | grep -oP 'vault/\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n 1) + LATEST_VERSION=$(curl -s https://releases.hashicorp.com/vault/ | grep -v 'rc' | grep -oP 'vault/\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n 1) printf "Latest version of Vault is %s.\n\n" "$${LATEST_VERSION}" if [ -z "$${LATEST_VERSION}" ]; then printf "Failed to determine the latest Vault version.\n"