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:
parent
0f1badca5b
commit
c99d800397
@ -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")
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user