Fix file creation issue
This commit is contained in:
parent
9e0eb25685
commit
2cfad92753
1 changed files with 4 additions and 0 deletions
|
|
@ -55,6 +55,10 @@ proc runFile*(file: string, cfgin: OrderedTableRef = newOrderedTable[string, str
|
||||||
echo "Creating " & file
|
echo "Creating " & file
|
||||||
createDir(file.splitPath().head)
|
createDir(file.splitPath().head)
|
||||||
writeFile(file, cfg[act])
|
writeFile(file, cfg[act])
|
||||||
|
if file in gExcludes:
|
||||||
|
gExcludes.delete(gExcludes.find(file))
|
||||||
|
sfile = search(file)
|
||||||
|
gDoneRecursive.add(sfile)
|
||||||
elif action in @["prepend", "append", "replace", "comment",
|
elif action in @["prepend", "append", "replace", "comment",
|
||||||
"rename", "compile", "dynlib", "pragma",
|
"rename", "compile", "dynlib", "pragma",
|
||||||
"pipe"] and sfile != "":
|
"pipe"] and sfile != "":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue