1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-05 08:33:48 +00:00

fix: use BSD stat explicitly to avoid GNU coreutils conflict (#160)

This commit is contained in:
Nathan Broadbent
2025-12-26 15:43:18 +13:00
committed by GitHub
parent b09b771dfe
commit f838e9517d
4 changed files with 5 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ echo ""
echo "✓ Build complete!"
echo ""
file bin/analyze-go
size_bytes=$(stat -f%z bin/analyze-go 2> /dev/null || echo 0)
size_bytes=$(/usr/bin/stat -f%z bin/analyze-go 2> /dev/null || echo 0)
size_mb=$((size_bytes / 1024 / 1024))
printf "Size: %d MB (%d bytes)\n" "$size_mb" "$size_bytes"
echo ""

View File

@@ -37,7 +37,7 @@ echo ""
echo "✓ Build complete!"
echo ""
file bin/status-go
size_bytes=$(stat -f%z bin/status-go 2> /dev/null || echo 0)
size_bytes=$(/usr/bin/stat -f%z bin/status-go 2> /dev/null || echo 0)
size_mb=$((size_bytes / 1024 / 1024))
printf "Size: %d MB (%d bytes)\n" "$size_mb" "$size_bytes"
echo ""