summaryrefslogtreecommitdiff
path: root/src/lua-script/script.h
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-01-05 00:30:43 -0600
committersanine <sanine.not@pm.me>2022-01-05 00:30:43 -0600
commit590601d810b5a810f87aa9b37ed31d8e7e43063d (patch)
tree267100f1a97192a7b45f229bdf7b8f03354b9957 /src/lua-script/script.h
parent6d43402c49e6f8c9a2548c628c98fb8431ce7971 (diff)
fix bug with leading slashes
Diffstat (limited to 'src/lua-script/script.h')
-rw-r--r--src/lua-script/script.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua-script/script.h b/src/lua-script/script.h
index 3789738..1ba2e4b 100644
--- a/src/lua-script/script.h
+++ b/src/lua-script/script.h
@@ -529,7 +529,7 @@ const char *argent_script =
"\n"
" function process(directory, parent)\n"
" local directory = add_end_slash(directory) or ''\n"
- " local parent = add_end_slash(parent) or ''\n"
+ " local parent = parent or ''\n"
" local dirs, files = argent.scanDirectory(argent.config.site_directory..parent..directory)\n"
" for _, file in ipairs(files) do\n"
" process_file(file, parent..directory)\n"