Skip to content

Commit 011d044

Browse files
committed
fix start library logic
1 parent 2319959 commit 011d044

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/all.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,10 @@ jobs:
156156
break
157157
fi
158158
done
159-
# 如果找到了first_library,则调整数组顺序
159+
# 如果找到了 first_library,则截取数组
160160
if [[ $start_index -ne -1 ]]; then
161-
libs=("${libs[@]:$start_index}" "${libs[@]:0:$start_index}")
161+
# 仅保留从 start_index 开始到最后的部分
162+
libs=("${libs[@]:$start_index}")
162163
else
163164
echo "Warning: first_library $first not found in the library list."
164165
fi

0 commit comments

Comments
 (0)