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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user