Skip to content

Commit 0f6318c

Browse files
committed
fix(nushell): chdir failure
1 parent 3b55089 commit 0f6318c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

z.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -2844,7 +2844,7 @@ def _zlua --env --wrapped [...args: string] {
28442844
^$env.ZLUA_LUAEXE $env.ZLUA_SCRIPT $arg_mode $arg_subdir $arg_type $arg_inter ...$args
28452845
} else {
28462846
let zdest = (^$env.ZLUA_LUAEXE $env.ZLUA_SCRIPT --cd $arg_type $arg_subdir $arg_inter ...$args)
2847-
if $zdest != '' and ($zdest | path type) == dir {
2847+
if $zdest != '' and ($zdest | path exists) {
28482848
cd $zdest
28492849
if _ZL_ECHO in $env and $env._ZL_ECHO != '' {
28502850
pwd

0 commit comments

Comments
 (0)