aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2017-01-06 17:44:35 -0200
committerHisham Muhammad <hisham@gobolinux.org>2017-09-12 20:35:27 -0300
commitd0a9e68a4125c043a6ee6a4d92ac244f2feb7ccb (patch)
tree929a0400739ab1648b120637090bdb03a7af7ad7
parent21cd04b1251866aed553cd535e2d129362f11aa2 (diff)
downloadluarocks-d0a9e68a4125c043a6ee6a4d92ac244f2feb7ccb.tar.gz
luarocks-d0a9e68a4125c043a6ee6a4d92ac244f2feb7ccb.tar.bz2
luarocks-d0a9e68a4125c043a6ee6a4d92ac244f2feb7ccb.zip
Oops! Fix warning message.
-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