Skip to content

Commit

Permalink
Updating the script binary_size_check to complete the command name by…
Browse files Browse the repository at this point in the history
… adding .exe extension to the k3s binary name to make it available to run stat command

Signed-off-by: Anuj Garg <anujgarg@microsoft.com>
  • Loading branch information
ag6221254 authored and brandond committed May 28, 2024
1 parent 6683fcd commit eb19219
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/binary_size_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -e

. ./scripts/version.sh

GO=${GO-go}
ARCH=${ARCH:-$("${GO}" env GOARCH)}

Expand All @@ -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
Expand Down

0 comments on commit eb19219

Please sign in to comment.