Skip to content

Commit

Permalink
Prevent addition of ruby versions multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
sfowl committed Oct 5, 2022
1 parent acbef68 commit b3e3fdd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/scan/ruby.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ func GetInstalledRubyVersions() []string {
return RubyVersions
}

// reset to default so that we don't add the same versions again
RubyVersions = []string{"system"}

versions := strings.Split(string(data), "\n")
versions = versions[:len(versions)-1]
sort.Sort(sort.Reverse(sort.StringSlice(versions)))
Expand Down

0 comments on commit b3e3fdd

Please sign in to comment.