From 315b4e3f7a6abecd0fdd525d8d8510c6eb4572e5 Mon Sep 17 00:00:00 2001 From: Darko Luketic Date: Mon, 8 Jan 2024 17:11:57 +0100 Subject: [PATCH] does this fix the cron exit status 1? --- runner/runner.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runner/runner.go b/runner/runner.go index 518f2a0..bada4df 100644 --- a/runner/runner.go +++ b/runner/runner.go @@ -34,7 +34,8 @@ func (r *Runner) Run() error { return fmt.Errorf("error getting current go version: %s", e) } for _, m := range ms { - fv, e := getVersionOfFile(fmt.Sprintf("%s/%s", m.RootPath, m.BinaryPath)) + fmt.Println(fmt.Sprintf("%s%s", m.RootPath, m.BinaryPath)) + fv, e := getVersionOfFile(fmt.Sprintf("%s%s", m.RootPath, m.BinaryPath)) if e != nil { return fmt.Errorf("error getting version of file: %s", e) } @@ -89,7 +90,7 @@ func getCurrentGoVersion() (string, error) { return version, nil } -// getVersionOfFile returns the version of a go binary or an non-nil error +// getVersionOfFile returns the version of a go binary or a non-nil error func getVersionOfFile(file string) (string, error) { cmd := exec.Command("go", "version", file) var out strings.Builder