spreed/check-handlebars-templates.sh
Joas Schilling 291e909153
Simplify the diff check and use the same way the server uses it nowerdays
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-12 14:31:42 +02:00

9 lines
243 B
Bash
Executable file

#!/bin/bash
set -e
# Compile Handlebars templates
make compile-handlebars-templates
git status
bash -c "[[ ! \"`git status --porcelain js/views/templates.js`\" ]] || ( echo 'Uncommitted changes in compiled Handlebar templates' && exit 1 )"