terraform-providers: update scripts

- skip updates that include alphabetic characters in version
This commit is contained in:
zowoq 2022-05-30 14:01:41 +10:00
parent fd523bfe80
commit 8bb4fac405

View file

@ -129,7 +129,7 @@ if [[ ${old_version} == "${version}" && ${force} != 1 && -z ${vendorSha256} && $
echo_provider "already at version ${version}"
exit
fi
if [[ ${version} =~ (alpha|beta|pre) && ${force} != 1 ]]; then
if [[ ${version} =~ [[:alpha:]] && ${force} != 1 ]]; then
echo_provider "not updating to unstable version ${version}"
exit
fi