From 2fb3dc8d45c1b2c057718beb688b488cd165da60 Mon Sep 17 00:00:00 2001 From: Maciej Sypien Date: Sat, 14 Sep 2024 19:47:00 +0200 Subject: [PATCH] feat: add command for checking script --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 049620c..5f1ff99 100644 --- a/Makefile +++ b/Makefile @@ -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 %'