mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-05 22:52:16 +00:00
Exclude PDF creation from SCAP
This commit is contained in:
@@ -1803,14 +1803,16 @@ def main():
|
||||
else:
|
||||
print("If you would like to generate the HTML file from the AsciiDoc file, install the ruby gem for asciidoctor")
|
||||
|
||||
asciidoctorPDF_path = is_asciidoctor_pdf_installed()
|
||||
if asciidoctorPDF_path != "":
|
||||
print('Generating PDF file from AsciiDoc...')
|
||||
cmd = f"{asciidoctorPDF_path} \'{adoc_output_file.name}\'"
|
||||
process = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True)
|
||||
process.communicate()
|
||||
else:
|
||||
print("If you would like to generate the PDF file from the AsciiDoc file, install the ruby gem for asciidoctor-pdf")
|
||||
# Don't create PDF if we are generating SCAP
|
||||
if not args.gary:
|
||||
asciidoctorPDF_path = is_asciidoctor_pdf_installed()
|
||||
if asciidoctorPDF_path != "":
|
||||
print('Generating PDF file from AsciiDoc...')
|
||||
cmd = f"{asciidoctorPDF_path} \'{adoc_output_file.name}\'"
|
||||
process = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True)
|
||||
process.communicate()
|
||||
else:
|
||||
print("If you would like to generate the PDF file from the AsciiDoc file, install the ruby gem for asciidoctor-pdf")
|
||||
|
||||
# finally revert back to the prior directory
|
||||
os.chdir(original_working_directory)
|
||||
|
||||
Reference in New Issue
Block a user