Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RHEL platform autodetection #383

Merged
merged 6 commits into from
Sep 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update version detection logic
pat-s committed Sep 11, 2024

Verified

This commit was signed with the committer’s verified signature.
pat-s Patrick Schratz
commit 8fb8044ca8c4c2e9e003d60293922d13e5c5882c
3 changes: 1 addition & 2 deletions R/sysreqs.R
Original file line number Diff line number Diff line change
@@ -347,8 +347,7 @@ parse_sysreqs_platform <- function(x) {
osplt$distribution <- restpcs[1]
osplt$version <- paste0(restpcs[-1], collapse = "-")
}
if (osplt$distribution == "rhel") {
osplt$distribution = "redhat"
if (osplt$distribution == "rhel" || osplt$distribution == "redhat") {
osplt$version = strsplit(osplt$version, "[.]")[[1]][1]
}
osplt