diff options
author | sanine <sanine.not@pm.me> | 2022-01-05 00:30:43 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-01-05 00:30:43 -0600 |
commit | 590601d810b5a810f87aa9b37ed31d8e7e43063d (patch) | |
tree | 267100f1a97192a7b45f229bdf7b8f03354b9957 /src/lua-script/script.lua | |
parent | 6d43402c49e6f8c9a2548c628c98fb8431ce7971 (diff) |
fix bug with leading slashes
Diffstat (limited to 'src/lua-script/script.lua')
-rw-r--r-- | src/lua-script/script.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua-script/script.lua b/src/lua-script/script.lua index f372b2b..2e896ae 100644 --- a/src/lua-script/script.lua +++ b/src/lua-script/script.lua @@ -528,7 +528,7 @@ return function(config) function process(directory, parent) local directory = add_end_slash(directory) or '' - local parent = add_end_slash(parent) or '' + local parent = parent or '' local dirs, files = argent.scanDirectory(argent.config.site_directory..parent..directory) for _, file in ipairs(files) do process_file(file, parent..directory) |