From 97bd5806263d74d43e86b2a26764cb8f806d5fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Sat, 18 Jul 2026 16:02:43 +0400 Subject: [PATCH] =?UTF-8?q?fix:=2003=5Fbuild=20script=20=E2=80=94=20VERSIO?= =?UTF-8?q?N=20from=20profile.env=20no=20longer=20overwritten,=20regex=20f?= =?UTF-8?q?ixed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TOOLS/scripts/03_build_and_upload_provider.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/TOOLS/scripts/03_build_and_upload_provider.sh b/TOOLS/scripts/03_build_and_upload_provider.sh index 760e278..34fdac7 100755 --- a/TOOLS/scripts/03_build_and_upload_provider.sh +++ b/TOOLS/scripts/03_build_and_upload_provider.sh @@ -98,12 +98,9 @@ load_s3cfg_registry() { fi } -VERSION="${1:-}" +VERSION="${1:-${VERSION:-}}" if [[ -z "$VERSION" ]]; then - VERSION="${VERSION:-}" -fi -if [[ -z "$VERSION" ]]; then - VERSION=$(grep -E 'version string' "$PROVIDER_MAIN" | sed -E 's/.*"([0-9.]+)".*/\1/') + VERSION=$(grep -E 'version string' "$PROVIDER_MAIN" | sed -E 's/.*"([^"]+)".*/\1/') fi if [[ -z "$VERSION" ]]; then