Skip to content

Commit bad0f06

Browse files
authored
Merge pull request kubernetes#124156 from bells17/support-mac-os-verify-file-size
[hack/verify-file-sizes.sh] Support Mac OS X
2 parents 534d7cb + 70499e3 commit bad0f06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/verify-file-sizes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ largefiles () {
4242
case "$tree" in
4343
w/-text)
4444
# Only binary files have a size limit.
45-
size="$(stat --printf=%s "$file")"
45+
size="$(wc -c < "$file")"
4646
if [ "${size}" -gt "$maxsize" ] &&
4747
! kube::util::array_contains "$file" "${allowlist[@]}"; then
4848
echo "$file is too large ($size bytes)"

0 commit comments

Comments
 (0)