aboutsummaryrefslogblamecommitdiffstats
path: root/tools/check-format
blob: 392d0235d41473b41bd036f4374cd5f30e571f32 (plain) (tree)
1
2
3
4
5
6
7
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}