Merge branch 'main' into feature/poe-provider

This commit is contained in:
Gareth Jones committed 2026-01-26 22:33:38 -08:00
commit 547ba23bda
5 files changed
+57 -4

No files matched your search

+12 -2
View File
@@ -30,10 +30,20 @@ collect_files() {
}
compute_hash() {
# Use sha256sum on Linux/Windows (Git Bash), shasum on macOS
local sha_cmd
if command -v sha256sum &>/dev/null; then
sha_cmd="sha256sum"
elif command -v shasum &>/dev/null; then
sha_cmd="shasum -a 256"
else
echo "No sha256 tool found (sha256sum or shasum)" >&2
exit 1
fi
collect_files \
| LC_ALL=C sort -z \
| xargs -0 shasum -a 256 \
| shasum -a 256 \
| xargs -0 $sha_cmd \
| $sha_cmd \
| awk '{print $1}'
}