vim-snippets/tests.sh

16 lines
256 B
Bash
Raw Normal View History

#!/usr/bin/env bash
SPACED=$(grep -REn '^ .+' --include '*.snippets' snippets);
2015-06-08 10:16:01 -04:00
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;