summaryrefslogtreecommitdiff
path: root/src/lib/random.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-25 12:35:12 +0300
committerPaul Buetow <paul@buetow.org>2026-06-25 12:35:12 +0300
commit12b2733dab6da12a2a6cf1d27d69bc7d143f5dfc (patch)
tree077adb3e5efc5e3a0bf9f1a5b24c38ebb264deb5 /src/lib/random.source.sh
parent964901d672d8e12baf4ac0eb29821d670ae15eb8 (diff)
Add runtime GNU-tool guard; document Linux-only platform support
shuriken shells out to GNU-only features of the standard Unix tools (find -printf, stat -c, cp -a, sort -R). Add require_gnu_tools in a new src/lib/compat.source.sh, sourced early and invoked from main() before any action runs. On invocation it feature-probes each tool in a throwaway temp dir; if any probe fails it prints a clear error naming the offending tool and exits 1, so non-GNU (macOS/BSD) environments fail fast instead of producing broken output. README gains a Platform compatibility section and the requirements line now mentions GNU coreutils/findutils. Tests cover the find and stat rejection paths; the shared test helper that builds a coreutils-without-imagemagick PATH now includes cp and stat (which the guard probes).
Diffstat (limited to 'src/lib/random.source.sh')
0 files changed, 0 insertions, 0 deletions