From 7b0d2a122a573fe32afcba9ec7a86a1323bf8750 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 12 Feb 2017 11:31:40 -0800 Subject: [PATCH] wip --- epwing.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/epwing.go b/epwing.go index 8ad84b5..b7f01dc 100644 --- a/epwing.go +++ b/epwing.go @@ -70,12 +70,7 @@ func epwingExportDb(inputPath, outputDir, title string, stride int, pretty bool) var data []byte if stat.IsDir() { - toolPath := filepath.Join( - "bin", - runtime.GOOS, - "zero-epwing", - ) - + toolPath := filepath.Join("bin", runtime.GOOS, "zero-epwing") if runtime.GOOS == "windows" { toolPath += ".exe" } @@ -88,7 +83,7 @@ func epwingExportDb(inputPath, outputDir, title string, stride int, pretty bool) return fmt.Errorf("failed to find zero-epwing in '%s'", toolPath) } - cmd := exec.Command(toolPath, inputPath) + cmd := exec.Command(toolPath, "--entries", inputPath) stdout, err := cmd.StdoutPipe() if err != nil {