0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

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 := cli.NewApp()
app.Name = "croc" app.Name = "croc"
if Version == "" { if Version == "" {
Version = "6.0.0" Version = "v4.1.6-105-g37b29ae"
} }
app.Version = Version app.Version = Version
app.Compiled = time.Now() app.Compiled = time.Now()

View file

@ -19,8 +19,12 @@ func run() (err error) {
if err != nil { if err != nil {
return 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 return
} }