add shellcheck and shfmt task

This commit is contained in:
Mitsuo Heijo
2020-01-31 00:17:56 +09:00
parent a529f0d6ae
commit 6e6f2a345d

11
Makefile Normal file
View File

@@ -0,0 +1,11 @@
.PHONY: shellcheck
shellcheck:
find ./installer -name "*.sh" -type f -print0 | xargs -0 shellcheck
.PHONY: shellcheck-docker
shellcheck-docker:
find ./installer -name "*.sh" -type f -print0 | xargs -0 docker run -t --rm -v "${PWD}:/mnt" koalaman/shellcheck:stable
.PHONY: shfmt
shfmt:
find ./installer -name "*.sh" -type f -print0 | xargs -0 shfmt -w