Skip to content

Conversation

@zhanghangorg
Copy link

sanbox.sh 中 SANDBOX_USER 默认取值 USER变量(或whoami执行结果),

check_permission 中 pgrep -U "${SANDBOX_USER}" 需要传入参数为 uid

pgrep [-U uid]

在macos 域环境下执行,check_permission()执行 pgrep找不到用户指定pid,永远无权限。
故SANDBOX_USER 取值改为 id -u

@CLAassistant
Copy link

CLAassistant commented Nov 8, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants