diff options
| author | xq114 <[email protected]> | 2022-11-29 08:23:42 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2022-11-29 08:23:42 +0800 |
| commit | 53e0d8a3d299b1f977e233e2f868dbba6e4f7440 (patch) | |
| tree | fc35eab64c3d65bf714b2c225ab5b0b7b6e674d3 /xmake/scripts | |
| parent | 612f1a2fa564033eba8d912768c721cf243b356f (diff) | |
fix xrepo for powershell 7.3
Diffstat (limited to 'xmake/scripts')
| -rw-r--r-- | xmake/scripts/xrepo-hook.psm1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/scripts/xrepo-hook.psm1 b/xmake/scripts/xrepo-hook.psm1 index 2a2c24c05..8e09c85b9 100644 --- a/xmake/scripts/xrepo-hook.psm1 +++ b/xmake/scripts/xrepo-hook.psm1 @@ -17,7 +17,7 @@ function Enter-XrepoEnvironment { begin { $script:xrepoOldEnvs = (Get-ChildItem -Path Env:); - if ($bnd -eq $Null) { + if (-not $bnd) { & $Env:XMAKE_EXE lua private.xrepo.action.env.info config; if (-not $?) { Exit 1; |
