diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-02-29 16:38:35 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-02-29 17:00:46 +0100 |
| commit | 055cbe24255be0b376d840a92948c830c46e3adc (patch) | |
| tree | 84c044003f8e49fdd45d451f3537537e3fcf5ed2 /config/vis/plugins/vis-build/tools/check-format | |
| parent | fa90804d713d68831e850d960c211bd0d656a736 (diff) | |
| download | dotfiles-055cbe24255be0b376d840a92948c830c46e3adc.tar.gz dotfiles-055cbe24255be0b376d840a92948c830c46e3adc.zip | |
[vis] add simple plugin to asynchronously run build commands
Diffstat (limited to 'config/vis/plugins/vis-build/tools/check-format')
| -rwxr-xr-x | config/vis/plugins/vis-build/tools/check-format | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/vis/plugins/vis-build/tools/check-format b/config/vis/plugins/vis-build/tools/check-format new file mode 100755 index 0000000..392d023 --- /dev/null +++ b/config/vis/plugins/vis-build/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} |
