diff options
author | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-08-01 08:08:06 -0700 |
---|---|---|
committer | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-08-01 08:08:06 -0700 |
commit | d317295e55436b65519f05f48d76abc989354283 (patch) | |
tree | 7385ff98bacd96fe2cf7df69a5df574e6b936b2f /util/startup.lua | |
parent | dcbfef2fcf7a397f230b2e13985d2f410fddf177 (diff) | |
download | prosody-d317295e55436b65519f05f48d76abc989354283.tar.gz prosody-d317295e55436b65519f05f48d76abc989354283.zip |
util.startup: Directly calling lfs.currentdir instead of storing it in a local variable
Diffstat (limited to 'util/startup.lua')
-rw-r--r-- | util/startup.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/startup.lua b/util/startup.lua index e7107a9c..abf985f8 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -236,8 +236,7 @@ function startup.setup_plugindir() 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. |