1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-06-30 09:58:50 +00:00

[=] move pwd outside of while loop

This commit is contained in:
manhong2112
2019-02-04 02:51:07 +08:00
parent 77c96548b6
commit 6b3dad6b18
+1 -2
View File
@@ -2075,7 +2075,6 @@ if /i "%RunMode%"=="-n" (
]]
local script_init_powershell = [[
function Init-ZLua {
# Prevent repeating init
@@ -2174,9 +2173,9 @@ function Init-ZLua {
break loop
}
$first = $args[0]
$env:PWD = ([string] $PWD)
}
$env:PWD = ([string] $PWD)
if ($arg_mode -eq "-h") {
& $script:LuaExe $script:LuaScript -h
} elseif ($arg_mode -eq "-l" -or $args.Length -eq 0) {