aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/vim-snippets/tests.sh
blob: 07f0ff31567e27c94342969ed41bd7c385d7c13e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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