Skip to content

Commit 68115b5

Browse files
committed
Fix ISO naming
1 parent 2332092 commit 68115b5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/util/create-kubernetes-binaries-iso.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,14 @@ if [ $# -lt 6 ]; then
2525
fi
2626

2727
ARCH="amd64"
28+
ARCH_SUFFIX="x86_64"
2829
if [ -n "${8}" ]; then
2930
if [ "${8}" = "x86_64" ]; then
3031
ARCH="amd64"
32+
ARCH_SUFFIX="x86_64"
3133
elif [ "${8}" = "aarch64" ]; then
3234
ARCH="arm64"
35+
ARCH_SUFFIX="aarch64"
3336
else
3437
echo "ERROR: ARCH must be 'x86_64' or 'aarch64'. If the optional parameter ARCH is not set then 'x86_64' is used."
3538
exit 1
@@ -43,8 +46,8 @@ start_dir="$PWD"
4346
iso_dir="/tmp/iso"
4447
working_dir="${iso_dir}/"
4548
mkdir -p "${working_dir}"
46-
build_name="${7}-${ARCH}.iso"
47-
[ -z "${build_name}" ] && build_name="setup-${RELEASE}-${ARCH}.iso"
49+
build_name="${7}-${ARCH_SUFFIX}.iso"
50+
[ -z "${build_name}" ] && build_name="setup-${RELEASE}-${ARCH_SUFFIX}.iso"
4851

4952
CNI_VERSION="v${3}"
5053
echo "Downloading CNI ${CNI_VERSION}..."

0 commit comments

Comments
 (0)