feat: add command for checking script

This commit is contained in:
Maciej Sypien 2024-09-14 19:47:00 +02:00 committed by Maciej Sypien
parent 195f5faecd
commit e2a2991235

View file

@ -1,4 +1,5 @@
.PHONY: check-scripts
check-scripts:
# Fail if any of these files have warnings
shellcheck ./gruvbox-tmp.tmux
@# Fail if any of these files have warnings
find . -type f -not -path "./uncommited/*" -a \( -iname "*.sh" -o -iname "*.tmux" \) | xargs -I % sh -c 'shellcheck %'
find . -type f -not -path "./uncommited/*" -a \( -iname "*.sh" -o -iname "*.tmux" \) | xargs -I % sh -c 'shfmt -l -d %'