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}