vim-snippets/tests.sh
2015-05-30 19:54:33 +01:00

16 lines
257 B
Bash
Executable File

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