aboutsummaryrefslogtreecommitdiff
path: root/src/luarocks/path.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/luarocks/path.lua')
-rw-r--r--src/luarocks/path.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/luarocks/path.lua b/src/luarocks/path.lua
index 03ed1b90..1c94b639 100644
--- a/src/luarocks/path.lua
+++ b/src/luarocks/path.lua
@@ -308,8 +308,12 @@ end
308--- Driver function for "path" command. 308--- Driver function for "path" command.
309-- @return boolean This function always succeeds. 309-- @return boolean This function always succeeds.
310function run(...) 310function run(...)
311 util.printout(cfg.export_lua_path:format(package.path)) 311 local flags = util.parse_flags(...)
312 util.printout(cfg.export_lua_cpath:format(package.cpath)) 312 util.printout(cfg.export_lua_path:format(util.remove_path_dupes(package.path, ';')))
313 util.printout(cfg.export_lua_cpath:format(util.remove_path_dupes(package.cpath, ';')))
314 if flags["bin"] then
315 util.printout(cfg.export_path:format(util.remove_path_dupes(os.getenv("PATH"), cfg.export_path_separator), cfg.deploy_bin_dir))
316 end
313 return true 317 return true
314end 318end
315 319