This repository was archived by the owner on May 15, 2025. It is now read-only.
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ unzip_safe() {
34
34
install () {
35
35
# Fetch the latest version of Vault if INSTALL_VERSION is 'latest'
36
36
if [ " $$ {INSTALL_VERSION}" = " latest" ]; then
37
- LATEST_VERSION=$( curl -s https://releases.hashicorp.com/vault/ | grep -oP ' vault/\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n 1)
37
+ 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)
38
38
printf " Latest version of Vault is %s.\n\n" " $$ {LATEST_VERSION}"
39
39
if [ -z " $$ {LATEST_VERSION}" ]; then
40
40
printf " Failed to determine the latest Vault version.\n"
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ unzip_safe() {
32
32
install () {
33
33
# Fetch the latest version of Vault if INSTALL_VERSION is 'latest'
34
34
if [ " $$ {INSTALL_VERSION}" = " latest" ]; then
35
- LATEST_VERSION=$( curl -s https://releases.hashicorp.com/vault/ | grep -oP ' vault/\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n 1)
35
+ 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)
36
36
printf " Latest version of Vault is %s.\n\n" " $$ {LATEST_VERSION}"
37
37
if [ -z " $$ {LATEST_VERSION}" ]; then
38
38
printf " Failed to determine the latest Vault version.\n"
You can’t perform that action at this time.
0 commit comments