From c99d8003979cd4a26da5a8f5e4125a495f7503a2 Mon Sep 17 00:00:00 2001 From: Justin McCarthy Date: Fri, 20 Jul 2018 17:08:09 -0700 Subject: [PATCH] use filepath join to open index html --- internal/cli/app.go | 2 +- internal/render/html.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cli/app.go b/internal/cli/app.go index 7a7e6f9..e7938b1 100644 --- a/internal/cli/app.go +++ b/internal/cli/app.go @@ -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") diff --git a/internal/render/html.go b/internal/render/html.go index de961dc..170ec0e 100644 --- a/internal/render/html.go +++ b/internal/render/html.go @@ -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()