Skip to content

Commit

Permalink
chore: disable nodekit upgrade prompts for dev versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tasos Bitsios committed Jan 22, 2025
1 parent 34e5df1 commit f55b6ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func main() {
var needsUpgrade = false
resp, err := api.GetNodeKitReleaseWithResponse(new(api.HttpPkg))
if err == nil && resp.ResponseCode >= 200 && resp.ResponseCode < 300 {
if resp.JSON200 != version {
if version != "dev" && resp.JSON200 != version {
needsUpgrade = true
// Warn on all commands but version
if len(os.Args) > 1 && os.Args[1] != "--version" {
Expand Down

0 comments on commit f55b6ce

Please sign in to comment.