Skip to content

Commit 9b9f18a

Browse files
committed
add a case is ID="centos"
1 parent ad76b93 commit 9b9f18a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/util/helpers.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ func GetOSVersion() (string, error) {
8989
return getDebianVersion(osReleaseMap), nil
9090
case "ubuntu":
9191
return getDebianVersion(osReleaseMap), nil
92+
case "centos":
93+
return getDebianVersion(osReleaseMap), nil
9294
default:
9395
return "", fmt.Errorf("Unsupported ID in /etc/os-release: %q", osReleaseMap["ID"])
9496
}

0 commit comments

Comments
 (0)