From 0543fb2acd0316a095f49dde821045688be69503 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..31ffa4ead 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 and date suffix echo "Version: $VERSION" EXTRACTION_DIR="${EXTRACTION_BASE_DIR}/jsonar/apps/${VERSION}"