docker: second --ldflags was overriding the first --ldflags option

This commit is contained in:
Krishna Srinivas
2015-11-06 23:39:26 -08:00
parent 03f185db5f
commit f77851bee0
5 changed files with 20 additions and 9 deletions
+8 -1
View File
@@ -16,7 +16,11 @@
package main
import "github.com/minio/cli"
import (
"os"
"github.com/minio/cli"
)
var versionCmd = cli.Command{
Name: "version",
@@ -34,4 +38,7 @@ func mainVersion(ctxx *cli.Context) {
Println("Version: " + minioVersion)
Println("Release-Tag: " + minioReleaseTag)
Println("Commit-ID: " + minioCommitID)
if os.Getenv("DOCKERIMAGE") == "1" {
Println("Docker-Image: " + "true")
}
}