1
0
mirror of https://github.com/strongdm/comply synced 2025-12-06 14:24:12 +00:00

pandoc must also include pdflatex

This commit is contained in:
Justin McCarthy
2018-05-28 16:46:35 -05:00
parent 1ec70a67d1
commit ff626a5ee2

View File

@@ -144,6 +144,18 @@ func pandocBinaryMustExist(c *cli.Context) error {
if major < 2 || minor < 1 { if major < 2 || minor < 1 {
return errors.New("pandoc 2.1 or greater required") return errors.New("pandoc 2.1 or greater required")
} }
// pdflatex must also be present
cmd = exec.Command("pdflatex", "-v")
outputRaw, err = cmd.Output()
if err != nil {
return errors.Wrap(err, "error calling pdflatex")
}
if !strings.Contains(string(outputRaw), "TeX") {
return errors.New("pdflatex is required")
}
return nil return nil
} }