feat: add command for checking script
This commit is contained in:
parent
d084c5bf84
commit
2fb3dc8d45
1 changed files with 3 additions and 2 deletions
5
Makefile
5
Makefile
|
@ -1,4 +1,5 @@
|
||||||
.PHONY: check-scripts
|
.PHONY: check-scripts
|
||||||
check-scripts:
|
check-scripts:
|
||||||
# Fail if any of these files have warnings
|
@# Fail if any of these files have warnings
|
||||||
shellcheck ./gruvbox-tmp.tmux
|
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 %'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue