This commit is contained in:
hailin 2025-07-06 14:34:22 +08:00
parent 9102b22125
commit 53dcdcdb12
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ if docker images --format '{{.Repository}}:{{.Tag}}' | grep -q "^${IMAGE_NAME}$"
fi
# ======== 进入源码目录并拉取代码 ========
if [ ! -d "${GIT_DIR}/.git" ]; then
echo "❌ 错误:找不到 Git 仓库目录:${GIT_DIR}"
if [ ! -d ".git" ]; then
echo "❌ 当前目录不是 Git 仓库,请在 gradio 仓库目录内运行。"
exit 1
fi