aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-02-29 17:21:49 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2024-02-29 17:21:49 +0100
commit7eea122ccf24efc9de55e2d9bf0dd69f0e18e50e (patch)
treedea88f710fa35ed524d8c34765508f8beb165291 /tools
downloadvis-build-7eea122ccf24efc9de55e2d9bf0dd69f0e18e50e.tar.gz
vis-build-7eea122ccf24efc9de55e2d9bf0dd69f0e18e50e.zip
initial commit
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}