dotfiles/vim/snippets/vim-snippets/tests.sh

16 lines
249 B
Bash
Raw Normal View History

2018-04-05 13:06:54 +02:00
#!/usr/bin/env bash
SPACED=$(grep -REn '^ .+' --include '*.snippets' snippets)
if [[ $? -ne 1 ]]; then
echo These snippet lines are indented with spaces:
echo
echo "$SPACED"
echo
echo Tests failed!
exit 1
fi
echo Tests passed!
exit 0