aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/fs/lua.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua
index 0a748b0e..1a7e4eff 100644
--- a/src/luarocks/fs/lua.lua
+++ b/src/luarocks/fs/lua.lua
@@ -159,8 +159,7 @@ end
159-- a crossplatform way. 159-- a crossplatform way.
160function change_dir_to_root() 160function change_dir_to_root()
161 table.insert(dir_stack, lfs.currentdir()) 161 table.insert(dir_stack, lfs.currentdir())
162 -- TODO Does this work on Windows? 162 lfs.chdir("/") -- works on Windows too
163 lfs.chdir("/")
164end 163end
165 164
166--- Change working directory to the previous in the dir stack. 165--- Change working directory to the previous in the dir stack.