Skip to content

Commit

Permalink
feat: 支持页面展示控制的环境变量自动注入
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewshan committed Sep 6, 2024
1 parent 8efbc46 commit 24791f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tool/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24791f9

Please # to comment.