From affc57e7d1e61a58a4c8aecd29e9831026bec48b Mon Sep 17 00:00:00 2001 From: Simon Thorley Date: Wed, 31 May 2023 13:33:14 +0100 Subject: [PATCH 1/2] Add alpha to list remote regex --- libexec/pkenv-list-remote | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/pkenv-list-remote b/libexec/pkenv-list-remote index 8938bbd..0e0f9dc 100755 --- a/libexec/pkenv-list-remote +++ b/libexec/pkenv-list-remote @@ -10,4 +10,4 @@ fi PKENV_REMOTE="${PKENV_REMOTE:-https://releases.hashicorp.com}" -curlw -sf "${PKENV_REMOTE}/packer/" | grep -o -E "[0-9]+\.[0-9]+\.[0-9]+(-(rc|beta)[0-9]+)?" | uniq +curlw -sf "${PKENV_REMOTE}/packer/" | grep -o -E "[0-9]+\.[0-9]+\.[0-9]+(-(rc|beta|alpha)[0-9]+)?" | uniq From 363a43f2a6f76882695a4eadc9965ad33383ae47 Mon Sep 17 00:00:00 2001 From: Simon Thorley Date: Wed, 31 May 2023 13:44:50 +0100 Subject: [PATCH 2/2] corrected alpha regex --- libexec/pkenv-list-remote | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/pkenv-list-remote b/libexec/pkenv-list-remote index 0e0f9dc..74fecb6 100755 --- a/libexec/pkenv-list-remote +++ b/libexec/pkenv-list-remote @@ -10,4 +10,4 @@ fi PKENV_REMOTE="${PKENV_REMOTE:-https://releases.hashicorp.com}" -curlw -sf "${PKENV_REMOTE}/packer/" | grep -o -E "[0-9]+\.[0-9]+\.[0-9]+(-(rc|beta|alpha)[0-9]+)?" | uniq +curlw -sf "${PKENV_REMOTE}/packer/" | grep -o -E "[0-9]+\.[0-9]+\.[0-9]+(-((rc|beta)[0-9]+|alpha))?" | uniq