diff options
| author | xq114 <[email protected]> | 2021-11-06 15:30:38 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2021-11-06 15:30:38 +0800 |
| commit | 2ed6222d854d03441d24314595cae550b4b842e0 (patch) | |
| tree | 7f70ab2b7bcb21efbd9e857553265978e5aa3142 /xmake/scripts | |
| parent | 95dea5af25edb9f1eda15ad8412342e26ef39525 (diff) | |
improve env config
Diffstat (limited to 'xmake/scripts')
| -rw-r--r-- | xmake/scripts/xrepo-hook.psm1 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/scripts/xrepo-hook.psm1 b/xmake/scripts/xrepo-hook.psm1 index 2210f10ef..2a2c24c05 100644 --- a/xmake/scripts/xrepo-hook.psm1 +++ b/xmake/scripts/xrepo-hook.psm1 @@ -33,6 +33,11 @@ function Enter-XrepoEnvironment { $activateCommand = (& $Env:XMAKE_EXE lua --quiet private.xrepo.action.env.info script.powershell | Out-String); } else { + & $Env:XMAKE_EXE lua private.xrepo.action.env.info config $bnd; + if (-not $?) { + Exit 1; + } + $xmakeColorTermBackup, $Env:XMAKE_COLORTERM = $Env:XMAKE_COLORTERM, "nocolor"; $xrepoPrompt = (& $Env:XMAKE_EXE lua --quiet private.xrepo.action.env.info prompt $bnd | Out-String); $Env:XMAKE_COLORTERM = $xmakeColorTermBackup; |
