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:
parent
6da57e496a
commit
aef63d2fcb
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user