mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
f8fa4213f1
These commands fail on systems that do not have bash under /bin Signed-off-by: William Casarin <jb55@jb55.com>
8 lines
409 B
Bash
Executable File
8 lines
409 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if git --no-pager grep -nHiE 'l[ightn]{6}g|l[ightn]{8}g|ilghtning|lgihtning|lihgtning|ligthning|lighnting|lightinng|lightnnig|lightnign' -- . ':!tools/check-spelling.sh'; then
|
|
echo "Identified a likely misspelling of the word \"lightning\" (see above). Please fix."
|
|
echo "Is this warning incorrect? Please teach tools/check-spelling.sh about the exciting new word."
|
|
exit 1
|
|
fi
|