diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-05-02 16:00:54 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-05-02 16:00:54 +0200 |
| commit | aead994af26e91c3a094b010fcba3d45453c8940 (patch) | |
| tree | 5841d69f14d24f7239d6d1c7edd9d5e48c735f49 /tools | |
| download | vis-lockfiles-aead994af26e91c3a094b010fcba3d45453c8940.tar.gz vis-lockfiles-aead994af26e91c3a094b010fcba3d45453c8940.zip | |
initial commit
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/check-format | 8 |
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} |
