From 24791f9cba2b87fed135dcf3ba0e9ea573b3acb6 Mon Sep 17 00:00:00 2001 From: andrew shan <45474304+andrewshan@users.noreply.github.com> Date: Fri, 6 Sep 2024 16:22:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E6=8E=A7=E5=88=B6=E7=9A=84=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E8=87=AA=E5=8A=A8=E6=B3=A8=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tool/start.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tool/start.sh b/tool/start.sh index a272d730..05103f30 100755 --- a/tool/start.sh +++ b/tool/start.sh @@ -14,6 +14,11 @@ workdir=$(pwd) #------------------------------------------------------ source tool/include +# 页面展示的控制配置 +if [[ -f "${workdir}/function.json" ]] && [[ -z "${POLARIS_EXPORT_FUNCTION_FILE}" ]];then + export POLARIS_EXPORT_FUNCTION_FILE="${workdir}/function.json" +fi + pids=$(ps -ef | grep -w "$cmdline" | grep -v "grep" | awk '{print $2}') array=($pids) if [ "${#array[@]}" == "0" ]; then