From 77f5d5c7ce2996d15cf5dc0eba6f9a486452155a Mon Sep 17 00:00:00 2001 From: emma Date: Fri, 11 Nov 2022 23:56:48 -0500 Subject: [PATCH] added dependency check for rg --- check_licenses.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/check_licenses.sh b/check_licenses.sh index c02b162..099ee23 100755 --- a/check_licenses.sh +++ b/check_licenses.sh @@ -1,4 +1,12 @@ #!/bin/sh -# Depends on: `rg` (ripgrep) -! rg --multiline --files-without-match --glob '*.rs' --pcre2 '(?/dev/null 2>&1; then + printf "%s: Missing dependency: rg(1)\n" "$0" 1>&2 + exit 71 # sysexits(3) EX_OSERR +else + rg --multiline --files-without-match --glob '*.rs' --pcre2 \ + '(?