1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-05 13:15:26 +02:00

chore: brew: better join impl

This commit is contained in:
Carlos Alexandro Becker 2018-11-07 14:15:07 -02:00
parent 6da57e496a
commit aef63d2fcb
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"io/ioutil"
"path"
"path/filepath"
"strings"
"text/template"
@ -141,10 +142,7 @@ func doRun(ctx *context.Context, client client.Client) error {
}
func ghFormulaPath(folder, filename string) string {
if folder == "" {
return filename
}
return folder + "/" + filename
return path.Join(folder, filename)
}
func getFormat(ctx *context.Context) string {