From 7ca25d450a7875a74b9dc71985f5d814e76f0c49 Mon Sep 17 00:00:00 2001 From: mrdrivingduck Date: Fri, 27 Dec 2024 12:01:32 +0800 Subject: [PATCH] ci: fix if docker image ls -aq returns nothing --- .github/workflows/precheck.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/precheck.yml b/.github/workflows/precheck.yml index 1e7582200cd..50a1f6e0f77 100644 --- a/.github/workflows/precheck.yml +++ b/.github/workflows/precheck.yml @@ -48,7 +48,9 @@ jobs: /usr/lib/jvm || true sudo apt autoremove -y sudo apt clean -y - docker rmi $(docker image ls -aq) + if [ -n "$(docker image ls -aq)" ]; then + docker rmi $(docker image ls -aq) + fi df -h - name: limit WAL size