exit code

This commit is contained in:
Emma Tebibyte 2022-11-11 23:59:40 -05:00
parent 77f5d5c7ce
commit 1f8d301103
1 changed files with 1 additions and 1 deletions

View File

@ -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'