1
0
mirror of https://github.com/amix/vimrc synced 2025-02-28 14:12:51 +08:00
amix-vimrc-mirror/sources_non_forked/vim-snippets/tests.sh

16 lines
249 B
Bash
Raw Normal View History

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