exit code
This commit is contained in:
parent
77f5d5c7ce
commit
1f8d301103
|
@ -5,7 +5,7 @@ set -e
|
|||
# check if we have rg(1)
|
||||
if ! command -v rg >/dev/null 2>&1; then
|
||||
printf "%s: Missing dependency: rg(1)\n" "$0" 1>&2
|
||||
exit 71 # sysexits(3) EX_OSERR
|
||||
exit 69 # sysexits(3) EX_UNAVAILABLE
|
||||
else
|
||||
rg --multiline --files-without-match --glob '*.rs' --pcre2 \
|
||||
'(?<!\n)((//)|(#)) Copyright \(c\) \d+ [A-z, ]+\n((//)|(#)) SPDX-License-Identifier: .*\n'
|
||||
|
|
Loading…
Reference in New Issue