Commit 6f4fd6d9 authored by Anuj Garg's avatar Anuj Garg Committed by Brad Davidson

Updating the script binary_size_check to complete the command name by adding…

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: 's avatarAnuj Garg <anujgarg@microsoft.com> (cherry picked from commit eb192197) Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent 77407d00
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
set -e set -e
. ./scripts/version.sh
GO=${GO-go} GO=${GO-go}
ARCH=${ARCH:-$("${GO}" env GOARCH)} ARCH=${ARCH:-$("${GO}" env GOARCH)}
...@@ -22,7 +24,7 @@ elif [ ${ARCH} = s390x ]; then ...@@ -22,7 +24,7 @@ elif [ ${ARCH} = s390x ]; then
BIN_SUFFIX="-s390x" BIN_SUFFIX="-s390x"
fi fi
CMD_NAME="dist/artifacts/k3s${BIN_SUFFIX}" CMD_NAME="dist/artifacts/k3s${BIN_SUFFIX}${BINARY_POSTFIX}"
SIZE=$(stat -c '%s' ${CMD_NAME}) SIZE=$(stat -c '%s' ${CMD_NAME})
if [ -n "${DEBUG}" ]; then if [ -n "${DEBUG}" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment