From d050e5c322866e407397955e48824362087b0bb8 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sat, 19 Oct 2024 16:01:37 -0400 Subject: Fixed small issue. --- src/lpm.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/lpm.lua') 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) -- cgit v1.2.3