Skip to content

Commit

Permalink
Merge pull request #51 from 030/49-latest-version
Browse files Browse the repository at this point in the history
[GH-49] Ensure that the latest version will be returned.
  • Loading branch information
030 committed Mar 5, 2021
2 parents f9bb630 + 98a8fa3 commit c6a0c73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/dip/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
log "github.com/sirupsen/logrus"
)

var ver string
var Version string

func dockerfileTag(i string) (string, error) {
b, err := ioutil.ReadFile("Dockerfile")
Expand Down Expand Up @@ -45,7 +45,7 @@ func main() {
}

if *version {
fmt.Println(ver)
fmt.Println(Version)
return
}

Expand Down

0 comments on commit c6a0c73

Please sign in to comment.