tools/check-spelling: Fix grep error on macOS

Changelog-Fixed: Fixes `make full-check` errors on macOS
This commit is contained in:
Nalin Bhardwaj
2021-06-21 15:32:31 +05:30
committed by Rusty Russell
parent bbaca4bb5c
commit 0fccfc0a9a

View File

@@ -6,7 +6,7 @@ if git --no-pager grep -nHiE 'l[ightn]{6}g|l[ightn]{8}g|ilghtning|lgihtning|lihg
exit 1
fi
if git --no-pager grep -nHiE 'ctlv' | grep -v 'enctlv' -- . ':!tools/check-spelling.sh'; then
if git --no-pager grep -nHiEP '(?<!en)ctlv' -- . ':!tools/check-spelling.sh'; then
echo "It's check lock time verify, not check time lock verify!" >&2
exit 1
fi