From 4199438d5ee1cff78c82017728f2ff005341c222 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 23 Oct 2024 15:09:46 +0800 Subject: [PATCH] fix update shell --- update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update b/update index 454ace02..46b0aff7 100644 --- a/update +++ b/update @@ -66,7 +66,7 @@ function install_backend_and_download_resources() { fi INFO "安装依赖成功" # 从后端文件中读取前端版本号 - frontend_version=$(grep -oP "(?<=FRONTEND_VERSION\s*=\s*')[^']+" /tm/App/version.py) + frontend_version=$(sed -n "s/^FRONTEND_VERSION\s*=\s*'\([^']*\)'/\1/p" /tmp/app/version.py) if [[ "${frontend_version}" != *v* ]]; then WARN "前端最新版本号获取失败,继续启动..." return 1