[+] 历史版本兼容
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 14s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 22m24s

This commit is contained in:
2025-01-13 21:12:49 +08:00
parent b1688d45a8
commit 9eda3ac981
8 changed files with 58 additions and 17 deletions

View File

@@ -1,8 +1,10 @@
#!/bin/bash
# 检查 pip 是否安装
if command -v pip &> /dev/null; then
if command -v pip > /dev/null 2>&1; then
echo "pip 已安装,正在配置镜像源..."
pip config set global.index-url https://mirrors.martin98.com/repository/pypi-group/simple
echo "镜像源配置完成。"
else
echo "pip 不存在,跳过..."
fi