Skip to content

Commit

Permalink
1.21 -> 1.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Nov 14, 2023
1 parent f83b038 commit f2c3b28
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmd/gobrew/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ func init() {
versionArg = versionArgSlice[0] + "." + versionArgSlice[1]
}
}
if len(versionArgSlice) == 2 {
majorVersionNum, _ := strconv.Atoi(versionArgSlice[0])
minorVersionNum, _ := strconv.Atoi(versionArgSlice[1])
// Comply with: https://github.com/kevincobain2000/gobrew/issues/156
// Check if the major version is 1 and the minor version is 21 or greater
if majorVersionNum == 1 && minorVersionNum >= 21 {
// Modify the versionArg to include ".0"
versionArg = versionArg + ".0"
}
}
}
}

Expand Down

0 comments on commit f2c3b28

Please sign in to comment.