From e77abae654834380a9f1d8619214ef4f563f87f2 Mon Sep 17 00:00:00 2001 From: evbauer Date: Fri, 29 May 2026 10:10:33 -0700 Subject: [PATCH] [ci skip] wc -c seems more robust on lustre than du -k, and should still be portable --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index aef70f1f9..655cb9d4e 100755 --- a/install +++ b/install @@ -68,7 +68,7 @@ then # if no file exists, that means the file was probably deleted and that's OK # if the file exists, but is short, then it is probably the bare LFS pointer # and that indicates a problem retrieving the file - if [ -f "${LFS_FILE}" ] && [ $(du -k "${LFS_FILE}" | cut -f1) -le 4 ]; + if [ -f "${LFS_FILE}" ] && [ $(wc -c < "${LFS_FILE}") -le 4096 ]; then echo echo "${LFS_FILE} is smaller than expected for a file tracked by git LFS"