Skip to content

Commit

Permalink
fix: Trim the plus character of minor version
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny-Wei committed Mar 25, 2024
1 parent 0b3b990 commit b4c2b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/agent/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func isSeccompSupported(versionInfo *version.Info) (bool, error) {
return false, err
}

minor, err := strconv.Atoi(versionInfo.Minor)
minor, err := strconv.Atoi(strings.TrimRight(versionInfo.Minor, "+"))
if err != nil {
return false, err
}
Expand Down

0 comments on commit b4c2b4d

Please sign in to comment.