vim-snippets/tests.sh

16 lines
249 B
Bash
Raw Permalink Normal View History

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