Skip to content

Commit 1e98577

Browse files
committed
Bump shellcheck, make it more reliable in workflow
1 parent 9d272d7 commit 1e98577

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎Makefile‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,17 @@ lint-golangci-lint:
298298
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.12.2 run -v
299299

300300
lint-shellcheck:
301+
@img="docker.io/koalaman/shellcheck-alpine:v0.9.0"; \
302+
for i in `seq 1 5`; do \
303+
docker pull "$$img" && break; \
304+
echo "shellcheck image pull failed (attempt $$i), retrying..."; \
305+
sleep $$((i * 2)); \
306+
done; \
301307
docker run \
302308
--rm \
303309
-v `pwd`:`pwd` \
304310
-w `pwd` \
305-
docker.io/koalaman/shellcheck-alpine:v0.9.0 \
311+
"$$img" \
306312
shellcheck \
307313
$$(git ls-files ':!:vendor' '*.sh')
308314

‎test_e2e.sh‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4021,7 +4021,6 @@ for arg; do
40214021
print_tests
40224022
exit 1
40234023
fi
4024-
tests_to_run+=("${matches[@]}")
40254024
done
40264025
set -- "${tests_to_run[@]}"
40274026

‎test_git.sh‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,6 @@ for arg; do
868868
print_tests
869869
exit 1
870870
fi
871-
tests_to_run+=("${matches[@]}")
872871
done
873872
set -- "${tests_to_run[@]}"
874873

0 commit comments

Comments
 (0)