aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorFlorian Fischer <gitlab@muhq.space>2021-12-28 12:26:35 +0000
committerFlorian Fischer <gitlab@muhq.space>2021-12-28 12:26:35 +0000
commit1eedbbe9389338f8988c3de524db5b6219322143 (patch)
tree0787a93c812964826a182710d2da63005834d1f3 /tools
parent655dafe59e35a2bc7bd0785c342c47e3ea860c70 (diff)
parent3920d09706ca3a880d41d9e8d4fe53b971d3c748 (diff)
downloadvis-lspc-1eedbbe9389338f8988c3de524db5b6219322143.tar.gz
vis-lspc-1eedbbe9389338f8988c3de524db5b6219322143.zip
Merge branch 'add-gl-ci' into 'master'
Add simple gitlab CI running on ubuntu:rolling See merge request muhq/vis-lspc!35
Diffstat (limited to 'tools')
-rwxr-xr-xtools/check-format8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/check-format b/tools/check-format
new file mode 100755
index 0000000..392d023
--- /dev/null
+++ b/tools/check-format
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+LUA_FILE=$1
+lua-format "${LUA_FILE}" > "${LUA_FILE}.fmt"
+diff "${LUA_FILE}" "${LUA_FILE}.fmt"
+RET=$?
+rm "${LUA_FILE}.fmt"
+exit ${RET}