aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/command_line.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/luarocks/command_line.lua b/src/luarocks/command_line.lua
index 1ad99e7f..31948b33 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