diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-24 00:41:19 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-24 00:41:19 -0300 |
commit | d3d74bf2d456b309fdf2a7a88f77862a14f7e7f6 (patch) | |
tree | 3c2944908da182e4d76908ffdb99c3d8fbe8bd7d /src | |
parent | a027595f718c6b05a8fbd4feae1605bff3fed5b9 (diff) | |
download | luarocks-d3d74bf2d456b309fdf2a7a88f77862a14f7e7f6.tar.gz luarocks-d3d74bf2d456b309fdf2a7a88f77862a14f7e7f6.tar.bz2 luarocks-d3d74bf2d456b309fdf2a7a88f77862a14f7e7f6.zip |
A missing CWD returns "" for fs.current_dir on Ubuntu...
Diffstat (limited to 'src')
-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 | ||