Software /
code /
prosody
Changeset
10195:3409f746f978
util.startup: Directly calling lfs.currentdir instead of storing it in a local variable
author | João Duarte <jvsDuarte08@gmail.com> |
---|---|
date | Thu, 01 Aug 2019 08:08:06 -0700 |
parents | 10194:dad1bc5fdb8e |
children | 10196:5e1012f2f2b7 |
files | util/startup.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/util/startup.lua Thu Aug 01 08:02:26 2019 -0700 +++ b/util/startup.lua Thu Aug 01 08:08:06 2019 -0700 @@ -236,8 +236,7 @@ CFG_PLUGINDIR = table.concat(custom_plugin_paths, path_sep)..path_sep..(CFG_PLUGINDIR or "plugins"); prosody.paths.plugins = CFG_PLUGINDIR; end - local current_directory = require "lfs".currentdir(); - installer_plugin_path = config.resolve_relative_path(current_directory, installer_plugin_path); + installer_plugin_path = config.resolve_relative_path(require "lfs".currentdir(), installer_plugin_path); require "lfs".mkdir(installer_plugin_path) -- Checking for duplicates -- The commands using luarocks need the path to the directory that has the /share and /lib folders.