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:
2
z.lua
2
z.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user