Exit with exitcode if build failed

This commit is contained in:
redfast00 2022-02-15 16:38:27 +01:00
parent 60dbfdfea4
commit 37d76ce708
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C

View file

@ -29,4 +29,4 @@ with open(outfilename, 'w') as outfile:
with open(filepath) as infile:
outfile.write(infile.read())
outfile.write("\n\\newpage{}\n")
os.system(f"pandoc --from=markdown --template=template.tex --output=docs.pdf prefix.yaml {outfilename} --highlight-style=espresso")
exit(os.system(f"pandoc --from=markdown --template=template.tex --output=docs.pdf prefix.yaml {outfilename} --highlight-style=espresso"))