mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 13:02:14 +00:00
Merge pull request #124156 from bells17/support-mac-os-verify-file-size
[hack/verify-file-sizes.sh] Support Mac OS X
This commit is contained in:
commit
bad0f06520
@ -42,7 +42,7 @@ largefiles () {
|
||||
case "$tree" in
|
||||
w/-text)
|
||||
# Only binary files have a size limit.
|
||||
size="$(stat --printf=%s "$file")"
|
||||
size="$(wc -c < "$file")"
|
||||
if [ "${size}" -gt "$maxsize" ] &&
|
||||
! kube::util::array_contains "$file" "${allowlist[@]}"; then
|
||||
echo "$file is too large ($size bytes)"
|
||||
|
Loading…
Reference in New Issue
Block a user