fix race condition? remove requirements listed that are installed automatically

This commit is contained in:
Tangent / Rose / Nebula Rosa 2024-11-07 14:10:40 -07:00
parent ee6fab1039
commit fd4a164e95
2 changed files with 2 additions and 3 deletions

View File

@ -38,7 +38,6 @@ will be used to make multiple ebooks back-to-back.
cleanall: Deletes everything except the config file and ePub. cleanall: Deletes everything except the config file and ePub.
Requirements: Requirements:
- Lua libraries: htmlparser, dkjson (or compatible)
- Binaries: pandoc, curl - Binaries: pandoc, curl
``` ```

View File

@ -19,7 +19,6 @@ will be used to make multiple ebooks back-to-back.
cleanall: Deletes everything except the config file and ePub. cleanall: Deletes everything except the config file and ePub.
Requirements: Requirements:
- Lua libraries: htmlparser, dkjson (or compatible)
- Binaries: pandoc, curl - Binaries: pandoc, curl
For how to write a configuration and examples, see the .lua-files README: For how to write a configuration and examples, see the .lua-files README:
@ -235,6 +234,7 @@ end
local function write_markdown_file(config) local function write_markdown_file(config)
local working_dir = get_base_file_name(config) local working_dir = get_base_file_name(config)
os.execute("sleep 1") -- fix race condition from the previous command
local markdown_file, err = io.open(get_base_file_name(config) .. ".md", "w") local markdown_file, err = io.open(get_base_file_name(config) .. ".md", "w")
if not markdown_file then error(err) end if not markdown_file then error(err) end
@ -274,7 +274,7 @@ end
local function rm_page_files(config) local function rm_page_files(config)
local working_dir = get_base_file_name(config) local working_dir = get_base_file_name(config)
os.execute("sleep 1") -- attempt to fix #14 os.execute("sleep 1") -- fix #14 race condition from the previous command
for section = config.sections.start, config.sections.finish do for section = config.sections.start, config.sections.finish do
local section_dir = working_dir .. path_separator .. tostring(section) local section_dir = working_dir .. path_separator .. tostring(section)