1
0
mirror of https://github.com/strongdm/comply synced 2024-11-05 07:25:26 +00:00

use filepath join to open index html

This commit is contained in:
Justin McCarthy 2018-07-20 17:08:09 -07:00
parent 0f1badca5b
commit c99d800397
No known key found for this signature in database
GPG Key ID: 900437410E142A48
2 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ func pandocBinaryMustExist(c *cli.Context) error {
}
// pdflatex must also be present
cmd = exec.Command("pdflatex", "-v")
cmd = exec.Command("pdflatex", "--version")
outputRaw, err = cmd.Output()
if err != nil {
return errors.Wrap(err, "error calling pdflatex")

View File

@ -82,7 +82,7 @@ func html(output string, live bool, errCh chan error, wg *sync.WaitGroup) {
if live {
if !opened {
opened = true
open.Run("output/index.html")
open.Run(filepath.Join(".", "output", "index.html"))
}
} else {
wg.Done()