Skip to content

Commit

Permalink
修复最后一行没有换行符的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
tech-shrimp committed Jun 13, 2024
1 parent 8eec8b7 commit 721c59d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 721c59d

Please sign in to comment.