1
0
Fork 0
mirror of synced 2024-11-30 12:45:35 -05:00
ultimate-vim/sources_non_forked/vim-snippets/tests.sh

16 lines
249 B
Bash
Raw Normal View History

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