Commit | Line | Data |
---|---|---|
1 | #!/bin/bash | |
2 | # Ensures that dygraph-combined.js is unaffected. | |
3 | # Helpful for pull requests, where this is a common mistake. | |
4 | ||
5 | grep 'var' dygraph-combined.js > /dev/null | |
6 | if [ $? -eq 0 ]; then | |
7 | echo 'Please revert changes to dygraph-combined.js' >&2 | |
8 | echo 'You can do this by running: ' >& 2 | |
9 | echo '' >& 2 | |
10 | echo ' git checkout dygraph-combined.js' >&2 | |
11 | echo '' >& 2 | |
12 | exit 1 | |
13 | fi | |
14 | ||
15 | exit 0 |