fix: trailing / issue in image_subdir (closes:#244)

This commit is contained in:
Thomas Lambert
2023-05-09 21:02:50 +02:00
parent 53f6665677
commit 617469cd06

View File

@@ -236,7 +236,12 @@ local function make_config_path_absolute(path)
if not (Path:new(path):is_absolute()) and path ~= nil then if not (Path:new(path):is_absolute()) and path ~= nil then
ret = M.Cfg.home .. "/" .. path ret = M.Cfg.home .. "/" .. path
end end
return ret:gsub("/$", "")
if ret ~= nil then
ret = ret:gsub("/$", "")
end
return ret
end end
local function recursive_substitution(dir, old, new) local function recursive_substitution(dir, old, new)