diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-10-19 16:01:37 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-10-19 16:01:37 -0400 |
commit | d050e5c322866e407397955e48824362087b0bb8 (patch) | |
tree | 877cff4821be64130bc0467081a56c5def3c1c32 /src/lpm.lua | |
parent | 47a8f23f374f34a77c678aab0458f409da1e3341 (diff) | |
download | lite-xl-plugin-manager-d050e5c322866e407397955e48824362087b0bb8.tar.gz lite-xl-plugin-manager-d050e5c322866e407397955e48824362087b0bb8.zip |
Fixed small issue.
Diffstat (limited to 'src/lpm.lua')
-rw-r--r-- | src/lpm.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index 9ffc720..9241a23 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1466,9 +1466,7 @@ function Bottle:construct() if not self.lite_xl:is_installed() then self.lite_xl:install() end common.mkdirp(self.local_path .. PATHSEP .. "user") - if self.config then - common.write(self.local_path .. PATHSEP .. "user" .. PATHSEP .. "init.lua", DEFAULT_CONFIG_HEADER .. (MOD_VERSION == "any" and "config.skip_plugins_version = true\n" or "") .. self.config) - end + common.write(self.local_path .. PATHSEP .. "user" .. PATHSEP .. "init.lua", DEFAULT_CONFIG_HEADER .. (MOD_VERSION == "any" and "config.skip_plugins_version = true\n" or "") .. (self.config or "")) -- Always copy the executbale, because of the way that lite determines the user folder (for now). common.copy(self.lite_xl:get_binary_path(), self.local_path .. PATHSEP .. "lite-xl" .. EXECUTABLE_EXTENSION) |