Fix file creation issue

This commit is contained in:
Ganesh Viswanathan 2018-07-13 12:51:27 -05:00
commit 2cfad92753

View file

@ -55,6 +55,10 @@ proc runFile*(file: string, cfgin: OrderedTableRef = newOrderedTable[string, str
echo "Creating " & file
createDir(file.splitPath().head)
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",
"rename", "compile", "dynlib", "pragma",
"pipe"] and sfile != "":