1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-24 08:02:33 +03:00

version with v

This commit is contained in:
Zack Scholl 2020-09-03 15:55:52 -07:00
parent b48c96fc37
commit fc14ef25ed
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ func Run() (err error) {
app := cli.NewApp()
app.Name = "croc"
if Version == "" {
Version = "8.3.0-87e54ac"
Version = "v8.3.0-87e54ac"
}
app.Version = Version
app.Compiled = time.Now()

View File

@ -16,7 +16,7 @@ func main() {
}
func run() (err error) {
versionNew := os.Getenv("VERSION")
versionNew := "v" + os.Getenv("VERSION")
versionHash, err := exec.Command("git", "rev-parse", "--short", "HEAD").Output()
if err != nil {
return