Skip to content

Commit 8eb93f4

Browse files
committed
updated template script
1 parent e8525bc commit 8eb93f4

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

ci/scripts/template.go

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package main
22

33
import (
44
"fmt"
5-
"html/template"
65
"os"
76
)
87

@@ -19,9 +18,9 @@ func main() {
1918
class GitPhlow < Formula
2019
desc "pragmatic workflow extension for git"
2120
homepage "https://github.com/Praqma/git-phlow"
22-
url "{{.URL}}"
23-
version "{{.Version}}"
24-
sha256 "{{.Hash}}"
21+
url "%s"
22+
version "%s"
23+
sha256 "%s"
2524
2625
def install
2726
bin.install "git-phlow"
@@ -42,12 +41,6 @@ end
4241
url := os.Getenv("URL")
4342
hash := os.Getenv("HASH")
4443

45-
substitute := Formula{url, version, hash}
44+
fmt.Fprintf(os.Stdout, msg, url, version, hash)
4645

47-
tmpl, err := template.New("msg").Parse(msg)
48-
err = tmpl.Execute(os.Stdout, substitute)
49-
if err != nil {
50-
fmt.Println(err)
51-
52-
}
5346
}

0 commit comments

Comments
 (0)