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 1d30a77
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ repos:
- id: check-case-conflict

# Beautify shell scripts
- repo: https://github.com/lovesegfault/beautysh.git
rev: v6.2.1
hooks:
- id: beautysh
exclude: (?x)^(tests/test_(.*))$
args: [-i, "2"]
# Deactivated because of an issue with deprecated python dependencies.
# See https://github.com/lovesegfault/beautysh/issues/248 and its fix to re-activate
# - repo: https://github.com/lovesegfault/beautysh.git
# rev: v6.2.1
# hooks:
# - id: beautysh
# exclude: (?x)^(tests/test_(.*))$
# args: [-i, "2"]

# Run local script
- repo: local
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 1d30a77

Please sign in to comment.