Skip to content

Commit c0ba375

Browse files
committed
Replace glob patterns with find command for reliable shell script detection
1 parent 1dd6bcd commit c0ba375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ lint: hadolint shellcheck shfmt ## Run all linting (hadolint, shellcheck, shfmt)
5656

5757
shellcheck: ## Lint shell scripts
5858
@echo -e "\033[36m$@\033[0m"
59-
@shellcheck **/*.sh
59+
@find . -type f -name "*.sh" -exec shellcheck {} +
6060

6161
shfmt: ## Lint shell script formatting
6262
@echo -e "\033[36m$@\033[0m"
63-
@shfmt -l -d -i 2 -ci -bn **/*.sh
63+
@find . -type f -name "*.sh" -exec shfmt -l -d -i 2 -ci -bn {} +
6464

6565
install-11.2-ol7: ## Install Oracle Database 11g R2 on Oracle Linux 7
6666
@$(DOCKER_COMPOSE) up -d oracle-linux-7

0 commit comments

Comments
 (0)