diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2021-12-28 12:45:07 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2021-12-28 13:24:07 +0100 |
| commit | 3920d09706ca3a880d41d9e8d4fe53b971d3c748 (patch) | |
| tree | 0787a93c812964826a182710d2da63005834d1f3 /tools/check-format | |
| parent | 9d047e2228c8c54082cb0174ee19415130474c11 (diff) | |
| download | vis-lspc-3920d09706ca3a880d41d9e8d4fe53b971d3c748.tar.gz vis-lspc-3920d09706ca3a880d41d9e8d4fe53b971d3c748.zip | |
make: implement check-format in POSIX shell
The docker image used for the CI does not contain bash.
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} |
