mirror of
https://github.com/TangentFoxy/.lua-files.git
synced 2024-11-20 21:34:23 +00:00
fix race condition? remove requirements listed that are installed automatically
This commit is contained in:
parent
ee6fab1039
commit
fd4a164e95
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user