mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated vimrc
This commit is contained in:
15
sources_non_forked/vim-snippets/tests.sh
Normal file
15
sources_non_forked/vim-snippets/tests.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
SPACED=$(grep -REn '^ .+' --include '*.snippets' snippets);
|
||||
|
||||
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;
|
Reference in New Issue
Block a user