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