Skip to content

Commit

Permalink
Fix build for the third time
Browse files Browse the repository at this point in the history
  • Loading branch information
dblanchette authored Apr 19, 2019
1 parent 44ba685 commit 886a86b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
yaml "gopkg.in/yaml.v2"
)

const Version = "0.0.1"
var version = "0.0.1"

var version = flag.BoolP("version", "v", false, "print version and exit")
var printVersion = flag.BoolP("version", "v", false, "print version and exit")

var openBrowser = flag.BoolP("open", "o", true, "Open the oauth approval URL in the browser")

Expand Down Expand Up @@ -149,8 +149,8 @@ func main() {

flag.Parse()

if *version {
fmt.Printf("k8s-oidc-helper %s\n", Version)
if *printVersion {
fmt.Printf("k8s-oidc-helper %s\n", version)
os.Exit(0)
}

Expand Down

0 comments on commit 886a86b

Please sign in to comment.