Skip to content

Commit

Permalink
abs paths
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAbides committed Dec 9, 2023
1 parent 6061904 commit a6a2e8c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/bindown/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a6a2e8c

Please sign in to comment.