Skip to content

Commit 40b8100

Browse files
bachmanity1mergify[bot]
authored andcommitted
feat: update comment
Signed-off-by: bachmanity1 <[email protected]>
1 parent cffff5f commit 40b8100

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/utils/os.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ func GetOSRelease() (string, error) {
5959
}
6060

6161
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.
62+
// First, try using `ID_LIKE` because some users might be on customized OS with a modified `ID`,
63+
// making it difficult to determine things like the proper package manager. If `ID_LIKE` is not found, use `ID`.
6464
platformRexp := regexp.MustCompile(`^ID_LIKE=["']?(.+?)["']?\n?$`)
6565
platform := parsePlatform(lines, platformRexp)
6666
if platform == "" {

0 commit comments

Comments
 (0)