X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/380080b99834735b0461bdf76e3483fe96354a43..7ef658fad17ab37abe8130b392bd1f41c82fc50f:/lib/install/deps.go diff --git a/lib/install/deps.go b/lib/install/deps.go index f4597d8162..9f483b7654 100644 --- a/lib/install/deps.go +++ b/lib/install/deps.go @@ -832,21 +832,21 @@ func identifyOS() (osversion, error) { case "debian": osv.Debian = true default: - id_like_match := false - for _, id_like := range strings.Split(kv["ID_LIKE"], " ") { - switch id_like { + idLikeMatched := false + for _, idLike := range strings.Split(kv["ID_LIKE"], " ") { + switch idLike { case "debian": osv.Debian = true - id_like_match = true + idLikeMatched = true case "rhel": osv.RedHat = true - id_like_match = true + idLikeMatched = true } - if id_like_match { + if idLikeMatched { break } } - if !id_like_match { + if !idLikeMatched { return osv, fmt.Errorf("no supported ID found in /etc/os-release") } }