From 58c57947fe5f30c8c01039884dc4364e46779174 Mon Sep 17 00:00:00 2001 From: Christopher Papke Date: Tue, 30 Jul 2024 11:18:41 -0700 Subject: [PATCH] allow date suffixes in upgrade script --- .../python_upgrader/upgrade/scripts/upgrade_v4_10.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/aws/sonar-upgrader/python_upgrader/upgrade/scripts/upgrade_v4_10.sh b/modules/aws/sonar-upgrader/python_upgrader/upgrade/scripts/upgrade_v4_10.sh index cc703d3de..bc482f4b6 100644 --- a/modules/aws/sonar-upgrader/python_upgrader/upgrade/scripts/upgrade_v4_10.sh +++ b/modules/aws/sonar-upgrader/python_upgrader/upgrade/scripts/upgrade_v4_10.sh @@ -43,6 +43,7 @@ TARBALL_FILE=$EXTRACTION_BASE_DIR/$TARBALL_FILE_NAME VERSION="${TARBALL_FILE#*-}" VERSION="${VERSION%.tar.gz}" +VERSION="${VERSION%_*}" # remove any date suffix echo "Version: $VERSION" EXTRACTION_DIR="${EXTRACTION_BASE_DIR}/jsonar/apps/${VERSION}"