Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'check-handlebars-templates.sh')
-rwxr-xr-xcheck-handlebars-templates.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/check-handlebars-templates.sh b/check-handlebars-templates.sh
new file mode 100755
index 000000000..ae1e63946
--- /dev/null
+++ b/check-handlebars-templates.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+REPODIR=`git rev-parse --show-toplevel`
+
+cd $REPODIR
+
+bash compile-handlebars-templates.sh || exit 1
+
+if [[ $(git diff --name-only) ]]; then
+ echo "Please submit your compiled handlebars templates"
+ echo
+ git diff
+ exit 1
+fi
+
+echo "All up to date! Carry on :D"
+exit 0