1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-03-15 20:29:47 +00:00

fix(nushell): chdir failure

This commit is contained in:
Zhaosheng Pan
2024-10-09 14:59:05 +08:00
parent 3b55089ad8
commit 0f6318ce4c

2
z.lua
View File

@@ -2844,7 +2844,7 @@ def _zlua --env --wrapped [...args: string] {
^$env.ZLUA_LUAEXE $env.ZLUA_SCRIPT $arg_mode $arg_subdir $arg_type $arg_inter ...$args
} else {
let zdest = (^$env.ZLUA_LUAEXE $env.ZLUA_SCRIPT --cd $arg_type $arg_subdir $arg_inter ...$args)
if $zdest != '' and ($zdest | path type) == dir {
if $zdest != '' and ($zdest | path exists) {
cd $zdest
if _ZL_ECHO in $env and $env._ZL_ECHO != '' {
pwd