From 721c59dffb0d00e498b3ca16f9a79e281d671ce8 Mon Sep 17 00:00:00 2001 From: tech-shrimp Date: Thu, 13 Jun 2024 15:11:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=80=E5=90=8E=E4=B8=80?= =?UTF-8?q?=E8=A1=8C=E6=B2=A1=E6=9C=89=E6=8D=A2=E8=A1=8C=E7=AC=A6=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index ee043ee12a..14fc2d8f36 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -61,7 +61,7 @@ jobs: # 数据预处理,判断镜像是否重名 declare -A duplicate_images declare -A temp_map - while IFS= read -r line; do + while IFS= read -r line || [ -n "$line" ]; do # 忽略空行与注释 [[ -z "$line" ]] && continue if echo "$line" | grep -q '^\s*#'; then @@ -99,7 +99,7 @@ jobs: done < images.txt - while IFS= read -r line; do + while IFS= read -r line || [ -n "$line" ]; do # 忽略空行与注释 [[ -z "$line" ]] && continue if echo "$line" | grep -q '^\s*#'; then