Skip to content

Commit

Permalink
shuf is not available on os x. Use sort -R instead
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrange committed Jun 10, 2024
1 parent 3c1bdb0 commit 405e585
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ repos:
rev: v6.2.1
hooks:
- id: beautysh
language_version: "3.11" # Workaround deprecated setuptools dependency. See https://github.com/lovesegfault/beautysh/issues/248
exclude: (?x)^(tests/test_(.*))$
args: [-i, "2"]

Expand Down
2 changes: 1 addition & 1 deletion bash_unit
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ CAT="$(type -P cat)"
SED="$(type -P sed)"
GREP="$(type -P grep)"
RM="$(type -P rm)"
SHUF="$(type -P shuf)"
SHUF="$(type -P sort) -R"

fail() {
local message=${1:-}
Expand Down

0 comments on commit 405e585

Please sign in to comment.