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

update version

This commit is contained in:
Zack Scholl 2019-05-02 13:28:28 -07:00
parent 2f4e5cdec4
commit 78e4ee2b68
3 changed files with 7 additions and 2 deletions

View file

@ -4,7 +4,7 @@
src="https://user-images.githubusercontent.com/6550035/46709024-9b23ad00-cbf6-11e8-9fb2-ca8b20b7dbec.jpg" src="https://user-images.githubusercontent.com/6550035/46709024-9b23ad00-cbf6-11e8-9fb2-ca8b20b7dbec.jpg"
width="408px" border="0" alt="croc"> width="408px" border="0" alt="croc">
<br> <br>
<a href="https://github.com/schollz/croc/releases/latest"><img src="https://img.shields.io/badge/version-6.0.0-brightgreen.svg?style=flat-square" alt="Version"></a> <a href="https://github.com/schollz/croc/releases/latest"><img src="https://img.shields.io/badge/version-v4.1.6-brightgreen.svg?style=flat-square" alt="Version"></a>
<a href="https://travis-ci.org/schollz/croc"><img <a href="https://travis-ci.org/schollz/croc"><img
src="https://img.shields.io/travis/schollz/croc.svg?style=flat-square" alt="Build src="https://img.shields.io/travis/schollz/croc.svg?style=flat-square" alt="Build
Status"></a> Status"></a>

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 = "v4.1.6-105-g37b29ae" Version = "v4.1.6-106-g2f4e5cd"
} }
app.Version = Version app.Version = Version
app.Compiled = time.Now() app.Compiled = time.Now()

View file

@ -25,6 +25,11 @@ func run() (err error) {
if err == nil { if err == nil {
fmt.Printf("updated cli.go to version %s\n", versionNew) fmt.Printf("updated cli.go to version %s\n", versionNew)
} }
err = replaceInFile("README.md", `version-`, `-b`, strings.Split(versionNew, "-")[0])
if err == nil {
fmt.Printf("updated README to version %s\n", strings.Split(versionNew, "-")[0])
}
return return
} }