diff options
| author | xq114 <[email protected]> | 2023-05-10 14:20:35 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2023-05-10 14:20:35 +0800 |
| commit | c8169591343bf62a970b2edffc90e26cfdfb2d31 (patch) | |
| tree | db1886141e5727d2d2990421c964850878ceba0c /xmake/scripts | |
| parent | 8ecdc87d0ed33c96caeeeb973702a56a1f8f4c2a (diff) | |
postpone env test to avoid locking
Diffstat (limited to 'xmake/scripts')
| -rw-r--r-- | xmake/scripts/virtualenvs/register-virtualenvs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/scripts/virtualenvs/register-virtualenvs.sh b/xmake/scripts/virtualenvs/register-virtualenvs.sh index 1f389b99e..ac82e9b94 100644 --- a/xmake/scripts/virtualenvs/register-virtualenvs.sh +++ b/xmake/scripts/virtualenvs/register-virtualenvs.sh @@ -36,12 +36,12 @@ function xrepo { unset XMAKE_PROMPT_BACKUP unset XMAKE_ENV_BACKUP fi + "$XMAKE_EXE" lua private.xrepo.action.env.info config || return 1 local currentTest="$("$XMAKE_EXE" lua --quiet private.xrepo.action.env)" || return 1 if [ ! -z "$currentTest" ]; then echo "error: corrupt xmake.lua detected in the current directory!" return 1 fi - "$XMAKE_EXE" lua private.xrepo.action.env.info config || return 1 local prompt="$("$XMAKE_EXE" lua --quiet private.xrepo.action.env.info prompt)" || return 1 if [ -z "${prompt+x}" ]; then return 1 |
