From 22e65b320b0533ad02a9ce5776f990756c9318f1 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Mon, 21 Nov 2022 16:19:13 +0100 Subject: [PATCH] Fix kitmaker release for opensuse-leap Signed-off-by: Evan Lezar --- scripts/extract-packages.sh | 2 +- scripts/release-kitmaker-artifactory.sh | 2 +- scripts/release-packages-artifactory.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/extract-packages.sh b/scripts/extract-packages.sh index 234b80c8..c4901fa4 100755 --- a/scripts/extract-packages.sh +++ b/scripts/extract-packages.sh @@ -34,7 +34,7 @@ fi PACKAGE_IMAGE=$1 DISTARCH=$2 DIST=${DISTARCH%-*} -ARCH=${DISTARCH#*-} +ARCH=${DISTARCH##*-} if [[ -z "${DIST}" || -z "${ARCH}" ]]; then echo "ERROR: Distro and Architecture must be specified." >&2 diff --git a/scripts/release-kitmaker-artifactory.sh b/scripts/release-kitmaker-artifactory.sh index 5b5d7bf0..2ac1ede9 100755 --- a/scripts/release-kitmaker-artifactory.sh +++ b/scripts/release-kitmaker-artifactory.sh @@ -42,7 +42,7 @@ source "${SCRIPTS_DIR}"/utils.sh DISTARCH=$1 DIST=${DISTARCH%-*} -ARCH=${DISTARCH#*-} +ARCH=${DISTARCH##*-} ARTIFACTORY_URL=$2 CURL=${CURL:-curl} diff --git a/scripts/release-packages-artifactory.sh b/scripts/release-packages-artifactory.sh index 598b07cd..0d7313b8 100755 --- a/scripts/release-packages-artifactory.sh +++ b/scripts/release-packages-artifactory.sh @@ -46,7 +46,7 @@ fi DISTARCH=$1 ARTIFACTORY_PATH=$2 DIST=${DISTARCH%-*} -ARCH=${DISTARCH#*-} +ARCH=${DISTARCH##*-} CURL=${CURL:-curl}