Commit 2cf5a35f authored by nanahira's avatar nanahira

fix

parent 5d8be4c0
Pipeline #35699 canceled with stages
in 10 minutes and 47 seconds
......@@ -191,9 +191,9 @@ process_repo() {
}
# run for each line in each text in repos/*.txt
for file in repos/*.txt || [ -n "$file" ]; do
for file in repos/*.txt; do
[ -e "$file" ] || continue # 避免 repos 目录为空时报错
while read -r repo_url; do
while read -r repo_url || [ -n "$file" ]; do
process_repo "$repo_url"
done < "$file"
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment