ci: syntax

This commit is contained in:
Michael Grote 2024-05-06 22:53:33 +02:00
parent 3f6d191c46
commit eb76869379

View file

@ -11,7 +11,7 @@ steps:
image: "koalaman/shellcheck-alpine:v0.10.0"
commands:
- |
find . -type f -not -path './.git/*' -not -path './collections/*' -exec file {} \; | while IFS= read -r line; do
find . -type f -not -path './.git/*' -exec file {} \; | while IFS= read -r line; do
if echo "$line" | grep -q "shell script"; then
file_path=$(echo "$line" | awk -F':' '{print $1}')
shellcheck "$file_path"