Skip to content

Commit

Permalink
Fix double printing
Browse files Browse the repository at this point in the history
  • Loading branch information
camerondurham committed May 28, 2021
1 parent e3dca2c commit 66dae7d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ func optionalVersionCheck() {
if err != nil {
util.DebugPrint(fmt.Sprintf("error reading environment file: %v", err))
checkLatestVersion()
}
if v, ok := opts["version_check"]; !ok || v == "true" {
} else if v, ok := opts["version_check"]; !ok || v == "true" {
checkLatestVersion()
} else {
util.DebugPrint(fmt.Sprintf("local package version: %s\nlatest version: %s\n", version.PkgVersion, v))
Expand Down

0 comments on commit 66dae7d

Please sign in to comment.