Skip to content

Commit

Permalink
add docs overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
stebo85 committed Jun 23, 2024
1 parent 8d7cf32 commit f7be023
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipes/defacing/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ def validateJson(jsonFilePath, schemaFilePath):

# Build Docker image, save to a .tar file, and package into a .zip file for OpenRecon
# The documentation must be a valid PDF!
docsFile = 'README.pdf'
# README.pdf is autogenerated from README.md, but if it should be overwritten with a dedicated docs.pdf thats's possible
if os.path.isfile('docs.pdf'):
docsFile = 'docs.pdf'
else:
docsFile = 'README.pdf'

# Filename must match information contained in the JSON
version = jsonData['general']['version']
Expand Down

0 comments on commit f7be023

Please sign in to comment.