File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -26,21 +26,21 @@ jobs:
2626 run : |
2727 # 提取 plugins.json 中的 repo 字段并检查可访问性
2828 repos=$(jq -r '.. | objects | .repo? // empty' plugins.json)
29- inaccessible_urls =() # 初始化一个数组用于记录不可访问的 URL
29+ unreachable_urls =() # 初始化一个数组用于记录不可访问的 URL
3030
3131 for repo in $repos; do
3232 if curl --output /dev/null --silent --head --fail "$repo"; then
3333 echo "Repository $repo is accessible."
3434 else
3535 echo "Repository $repo is NOT accessible."
36- inaccessible_urls +=("$repo") # 将不可访问的 URL 添加到数组
36+ unreachable_urls +=("$repo") # 将不可访问的 URL 添加到数组
3737 fi
3838 done
3939
4040 # 检查是否有不可访问的 URL
41- if [ ${#inaccessible_urls [@]} -ne 0 ]; then
41+ if [ ${#unreachable_urls [@]} -ne 0 ]; then
4242 echo "The following repositories are NOT accessible:"
43- for url in "${inaccessible_urls [@]}"; do
43+ for url in "${unreachable_urls [@]}"; do
4444 echo "$url" # 输出每个不可访问的 URL
4545 done
4646 exit 1 # 结束运行并标记失败状态
You can’t perform that action at this time.
0 commit comments