From a6a2e8cc2e9c793a4d4b98d7a31e1d2345d78d0f Mon Sep 17 00:00:00 2001 From: Will Roden Date: Sat, 9 Dec 2023 15:46:45 -0600 Subject: [PATCH] abs paths --- internal/bindown/install.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/bindown/install.go b/internal/bindown/install.go index 1d0c941..461e15c 100644 --- a/internal/bindown/install.go +++ b/internal/bindown/install.go @@ -115,6 +115,10 @@ func createWrapper(name, target, bindownExec, cacheDir, configFile string, missi if err != nil { return "", err } + wrapperDir, err = filepath.Abs(wrapperDir) + if err != nil { + return "", err + } if bindownExec == "" { bindownExec = "bindown" } else { @@ -145,6 +149,10 @@ func createWrapper(name, target, bindownExec, cacheDir, configFile string, missi if err != nil { return "", err } + cacheDir, err = filepath.Abs(cacheDir) + if err != nil { + return "", err + } cacheDir, err = relPath(wrapperDir, cacheDir) if err != nil { return "", err