Browse Source

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 <anujgarg@microsoft.com>
(cherry picked from commit eb192197eb)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/10289/head
Anuj Garg 7 months ago committed by Brad Davidson
parent
commit
d15e487d8e
  1. 4
      scripts/binary_size_check.sh

4
scripts/binary_size_check.sh

@ -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
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

Loading…
Cancel
Save