diff options
-rw-r--r-- | src/luarocks/command_line.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/command_line.lua b/src/luarocks/command_line.lua index 4ff22c6e..e35c14ab 100644 --- a/src/luarocks/command_line.lua +++ b/src/luarocks/command_line.lua | |||
@@ -193,7 +193,7 @@ function command_line.run_command(...) | |||
193 | end | 193 | end |
194 | end | 194 | end |
195 | 195 | ||
196 | if not fs.current_dir() then | 196 | if not fs.current_dir() or fs.current_dir() == "" then |
197 | die("Current directory does not exist. Please run LuaRocks from an existing directory.") | 197 | die("Current directory does not exist. Please run LuaRocks from an existing directory.") |
198 | end | 198 | end |
199 | 199 | ||