mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fix chdir (pass the current directory)
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ class Dir
|
||||
wd = self.getwd
|
||||
begin
|
||||
self._chdir(path)
|
||||
block.call
|
||||
block.call(path)
|
||||
ensure
|
||||
my._chdir(wd)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user