diff options
| author | Hisham <hisham@gobolinux.org> | 2017-01-06 17:44:35 -0200 |
|---|---|---|
| committer | Hisham <hisham@gobolinux.org> | 2017-01-06 17:44:35 -0200 |
| commit | a19575867f1335c0c73fd90e14aed0d689cfc42e (patch) | |
| tree | f9253d8cac21152e61a584757e5189015be4b27d | |
| parent | e6b161fabc5a3122bc11162e3f42df2c802f3673 (diff) | |
| download | luarocks-a19575867f1335c0c73fd90e14aed0d689cfc42e.tar.gz luarocks-a19575867f1335c0c73fd90e14aed0d689cfc42e.tar.bz2 luarocks-a19575867f1335c0c73fd90e14aed0d689cfc42e.zip | |
Oops! Fix warning message.
| -rw-r--r-- | src/luarocks/command_line.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/luarocks/command_line.lua b/src/luarocks/command_line.lua index 3f17b18a..528ca068 100644 --- a/src/luarocks/command_line.lua +++ b/src/luarocks/command_line.lua | |||
| @@ -187,7 +187,9 @@ function command_line.run_command(...) | |||
| 187 | util.warning("The directory '" .. cfg.local_cache .. "' or its parent directory ".. | 187 | util.warning("The directory '" .. cfg.local_cache .. "' or its parent directory ".. |
| 188 | "is not owned by the current user and the cache has been disabled. ".. | 188 | "is not owned by the current user and the cache has been disabled. ".. |
| 189 | "Please check the permissions and owner of that directory. ".. | 189 | "Please check the permissions and owner of that directory. ".. |
| 190 | "If executing pip with sudo, you may want sudo's -H flag.") | 190 | (cfg.is_platform("unix") |
| 191 | and ("If executing "..util.this_program("luarocks").." with sudo, you may want sudo's -H flag.") | ||
| 192 | or "")) | ||
| 191 | cfg.local_cache = fs.make_temp_dir("local_cache") | 193 | cfg.local_cache = fs.make_temp_dir("local_cache") |
| 192 | util.schedule_function(fs.delete, cfg.local_cache) | 194 | util.schedule_function(fs.delete, cfg.local_cache) |
| 193 | end | 195 | end |
