mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
0cef23d33a
The pagination causes it to wait for a keypress even with no output under emacs (complaining about the terminal); we don't want it anyway. Example output: Makefile:228:#lighnting! Identified a likely misspelling of the word "lightning" (see above). Please fix. Is this warning incorrect? Please teach tools/check-spelling.sh about the exciting new word. Makefile:230: recipe for target 'check-spelling' failed Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
9 lines
415 B
Bash
Executable File
9 lines
415 B
Bash
Executable File
#!/bin/bash
|
|
|
|
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'
|
|
if [[ $? == 0 ]]; 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
|