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:
parent
b48c96fc37
commit
fc14ef25ed
@ -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()
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user