diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-02-29 17:07:25 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-02-29 17:07:25 +0100 |
| commit | 996b504c835cd1157878fe057c6434e313037438 (patch) | |
| tree | 6319681c7c60c83e229a60b09410b6cfb0e4db68 /tools/check-format | |
| parent | 180f8825edd1d40c37f001f4c563db3a9d7b1f6a (diff) | |
| download | vis-snippets-996b504c835cd1157878fe057c6434e313037438.tar.gz vis-snippets-996b504c835cd1157878fe057c6434e313037438.zip | |
add lua development tooling
Diffstat (limited to 'tools/check-format')
| -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} |
