Skip to content

Commit

Permalink
[bin/forbid] Improve error message if ripgrep is missing (#2493)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Dec 1, 2024
1 parent beaec7e commit 7d56d52
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bin/forbid
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/usr/bin/env bash

set -euxo pipefail
set -euo pipefail

if ! which rg > /dev/null; then
echo 'error: `rg` not found, please install ripgrep: https://github.com/BurntSushi/ripgrep/'
exit 1
fi

which rg

! rg \
--glob !bin/forbid \
Expand Down

0 comments on commit 7d56d52

Please sign in to comment.