Skip to content

Commit c9792fd

Browse files
committed
fix: detection and installation of asciidoc gems
1 parent 6ecd4fc commit c9792fd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/mscp/generate/guidance_support/documents.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -482,13 +482,12 @@ def generate_documents(
482482
spinner.spinner = Spinners.dots
483483
spinner.text = "Checking for asciidoctor components"
484484
time.sleep(1)
485-
asciidoctor_path, _ = run_command("bundle show asciidoctor")
486-
asciidoctor_pdf_path, _ = run_command("bundle show asciidoctor-pdf")
485+
asciidoctor_path, asciidoctor_err = run_command("bundle show asciidoctor")
486+
asciidoctor_pdf_path, asciidoctor_pdf_err = run_command(
487+
"bundle show asciidoctor-pdf"
488+
)
487489

488-
if (
489-
"Could not find gem" in asciidoctor_path
490-
or "Could not find gem" in asciidoctor_pdf_path
491-
):
490+
if asciidoctor_err or asciidoctor_pdf_err:
492491
spinner.text = "Installing missing asciidoctor components"
493492
time.sleep(1)
494493
output, error = run_command(

0 commit comments

Comments
 (0)