We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cffff5f commit 40b8100Copy full SHA for 40b8100
pkg/utils/os.go
@@ -59,8 +59,8 @@ func GetOSRelease() (string, error) {
59
}
60
61
func parseOSreleaseFile(lines []string) (string, error) {
62
- // First, try using ID_LIKE because some users might be using customized os distributions with customized ID
63
- // making it difficult to determine things like proper package manager, if ID_LIKE is not found use ID.
+ // First, try using `ID_LIKE` because some users might be on customized OS with a modified `ID`,
+ // making it difficult to determine things like the proper package manager. If `ID_LIKE` is not found, use `ID`.
64
platformRexp := regexp.MustCompile(`^ID_LIKE=["']?(.+?)["']?\n?$`)
65
platform := parsePlatform(lines, platformRexp)
66
if platform == "" {
0 commit comments