diff --git a/Makefile b/Makefile index a436a49..6201b68 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ .PHONY: lint_shellcheck lint_shellcheck: - find . -type f -not -path "./uncommited/*" -a \( -iname "*.sh" -o -iname "*.tmux" \) | \ + find . -type f -not -path "./uncommited/*" -a \( -iname "*.sh" \) | \ xargs -I % sh -c 'shellcheck %' .PHONY: lint_shfmt lint_shfmt: - find . -type f -not -path "./uncommited/*" -a \( -iname "*.sh" -o -iname "*.tmux" \) | \ - xargs -I % sh -c 'shfmt -l -d %' + find . -type f -not -path "./uncommited/*" -a \( -iname "*.sh" \) | \ + xargs -I % sh -c 'shfmt -i=2 -l -d -ln=bash %' .PHONY: check_scripts check_scripts: lint_shellcheck lint_shfmt