diff options
| author | xq114 <[email protected]> | 2021-04-30 23:05:05 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2021-04-30 23:05:05 +0800 |
| commit | 108410d9151b2ba67b011e858576ab7efdbd2176 (patch) | |
| tree | 483c8c6d150445364cbe46bb40c7d3fe99babcdc /scripts | |
| parent | 947cfffa942ec1160a68c614c296830991fc0710 (diff) | |
run config only in project directories
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/xrepo-hook.psm1 | 2 | ||||
| -rwxr-xr-x | scripts/xrepo.bat | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/xrepo-hook.psm1 b/scripts/xrepo-hook.psm1 index efd3f909e..5874203fd 100644 --- a/scripts/xrepo-hook.psm1 +++ b/scripts/xrepo-hook.psm1 @@ -15,7 +15,7 @@ function Enter-XrepoEnvironment { begin { $script:xrepoOldEnvs = (Get-ChildItem -Path Env:); - & $Env:XMAKE_EXE config + & $Env:XMAKE_EXE lua private.xrepo.action.env.info config; $xmakeColorTermBackup, $Env:XMAKE_COLORTERM = $Env:XMAKE_COLORTERM, "nocolor"; $xrepoPrompt = (& $Env:XMAKE_EXE lua private.xrepo.action.env.info prompt | Out-String); diff --git a/scripts/xrepo.bat b/scripts/xrepo.bat index cbf7a080e..1a4a230ca 100755 --- a/scripts/xrepo.bat +++ b/scripts/xrepo.bat @@ -18,7 +18,7 @@ call %XMAKE_ENV_BACKUP% setlocal EnableDelayedExpansion if !errorlevel! neq 0 exit /B !errorlevel! - %XMAKE_EXE% config + %XMAKE_EXE% lua private.xrepo.action.env.info config @%XMAKE_EXE% lua private.xrepo.action.env.info prompt 1>nul if !errorlevel! neq 0 ( echo error: xmake.lua not found^^! @@ -32,7 +32,7 @@ exit /B 1 ) else ( setlocal EnableDelayedExpansion - %XMAKE_EXE% config + %XMAKE_EXE% lua private.xrepo.action.env.info config @%XMAKE_EXE% lua private.xrepo.action.env.info prompt 1>nul if !errorlevel! neq 0 ( echo error: xmake.lua not found^^! |
