This commit is contained in:
Wang Sen Di
2025-11-27 15:55:11 +08:00
parent a885bec8d0
commit 15dbd9e67a

View File

@@ -62,7 +62,9 @@ __check_process() {
}
__main() {
[[ -z "$_id" ]] && return
if [[ -z "$_id" ]]; then
_id=$(cat /host/workspace/id 2>/dev/null)
fi
# 防止环境变量有问题
if [[ -z "$CACHE" ]]; then
CACHE=$(cat /host/workspace/runc-rootfs/biz-m-arm32-*/config.json | jq -r '.process.env[]' | awk -F = '/CACHE/{print $NF}')