Skip to content

Commit 3a28fad

Browse files
- Safety first with dynamic args.
1 parent 89a3f14 commit 3a28fad

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,10 +1549,8 @@ jobs:
15491549
docker container ls --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}" -a
15501550
echo "## End ##"
15511551
docker compose down
1552-
# shellcheck disable=SC2046
1553-
docker stop $(docker ps -a -q)
1554-
# shellcheck disable=SC2046
1555-
docker rm $(docker ps -a -q)
1552+
docker stop "$(docker ps -a -q)" || true
1553+
docker rm "$(docker ps -a -q)" || true
15561554
echo "## Stray docker containers after clean up commands ##"
15571555
docker container ls --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}" -a
15581556
echo "## End ##"

0 commit comments

Comments
 (0)