mirror of
https://github.com/casey/just.git
synced 2025-08-04 15:08:39 +00:00
[bin/forbid] Improve error message if ripgrep is missing (#2493)
This commit is contained in:
parent
beaec7ef7c
commit
7d56d5214e
1 changed files with 6 additions and 2 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue