This repository has been archived on 2023-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/.config/vis/plugins/vis-spellcheck/tools/check-format

9 lines
145 B
Bash
Executable File

#!/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}