Add asset check script

This commit is contained in:
Dan Sosedoff
2017-10-24 23:11:02 -05:00
parent 06afa786ef
commit c4cdacc2d8
2 changed files with 13 additions and 0 deletions

10
script/check_assets.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
if grep -q 'go/src/github.com/sosedoff/pgweb' ./pkg/data/bindata.go
then
echo "=========================================================="
echo "ERROR: Bindata contains development references to assets!"
echo "Fix with 'make assets' and commit the change."
echo "=========================================================="
exit 1
fi