From d15e487d8eff17956e9e2e5b3de4dc708f2bcc84 Mon Sep 17 00:00:00 2001 From: Anuj Garg Date: Mon, 22 Apr 2024 11:43:35 +0530 Subject: [PATCH] Updating the script binary_size_check to complete the command name by adding .exe extension to the k3s binary name to make it available to run stat command Signed-off-by: Anuj Garg (cherry picked from commit eb192197eb69e9be223c39ec83f59dee5ceadd3e) Signed-off-by: Brad Davidson --- scripts/binary_size_check.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/binary_size_check.sh b/scripts/binary_size_check.sh index 9ba138e3f4..f019ec53e1 100755 --- a/scripts/binary_size_check.sh +++ b/scripts/binary_size_check.sh @@ -2,6 +2,8 @@ set -e +. ./scripts/version.sh + GO=${GO-go} ARCH=${ARCH:-$("${GO}" env GOARCH)} @@ -22,7 +24,7 @@ elif [ ${ARCH} = s390x ]; then BIN_SUFFIX="-s390x" fi -CMD_NAME="dist/artifacts/k3s${BIN_SUFFIX}" +CMD_NAME="dist/artifacts/k3s${BIN_SUFFIX}${BINARY_POSTFIX}" SIZE=$(stat -c '%s' ${CMD_NAME}) if [ -n "${DEBUG}" ]; then