From 6e6f2a345deb694e91bfda53885573370eb11e91 Mon Sep 17 00:00:00 2001 From: Mitsuo Heijo Date: Fri, 31 Jan 2020 00:17:56 +0900 Subject: add shellcheck and shfmt task --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..24d23b3 --- /dev/null +++ b/Makefile @@ -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 -- cgit v1.2.3-54-g00ecf