diff --git a/module/osutil.lua b/module/osutil.lua index aa3bdf9..979a52d 100644 --- a/module/osutil.lua +++ b/module/osutil.lua @@ -10,7 +10,7 @@ function os.chdir(p) -- changes the current working directory of the calling pro end p = "/"..table.concat(np,"/") end - if fs.exists(p) and fs.list(p) then + if fs.list(p) then os.setenv("PWD",p) else return false, "no such directory"