mirror of https://github.com/schollz/croc.git
update versoin
This commit is contained in:
parent
37b29aebce
commit
2f4e5cdec4
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue