update versoin

This commit is contained in:
Zack Scholl 2019-05-02 13:25:03 -07:00
parent 37b29aebce
commit 2f4e5cdec4
2 changed files with 6 additions and 2 deletions

View File

@ -27,7 +27,7 @@ func Run() (err error) {
app := cli.NewApp()
app.Name = "croc"
if Version == "" {
Version = "6.0.0"
Version = "v4.1.6-105-g37b29ae"
}
app.Version = Version
app.Compiled = time.Now()

View File

@ -19,8 +19,12 @@ func run() (err error) {
if err != nil {
return
}
versionNew := strings.TrimSpace(string(version))
err = replaceInFile("src/cli/cli.go", `Version ="`, `"`, string(version))
err = replaceInFile("src/cli/cli.go", `Version = "`, `"`, versionNew)
if err == nil {
fmt.Printf("updated cli.go to version %s\n", versionNew)
}
return
}