Skip to content

Commit

Permalink
fix(nushell): chdir failure
Browse files Browse the repository at this point in the history
  • Loading branch information
brglng committed Oct 9, 2024
1 parent 3b55089 commit 0f6318c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion z.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f6318c

Please sign in to comment.