Skip to content

Commit

Permalink
fix: Fix output for posit drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
csgillespie committed Jun 6, 2024
1 parent 192d8cc commit d6263b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# audit.base 0.6.15 _2024-06-06_
- feat: Add support for Centos
- fix: Update software version numbers
- fix: Fix output for Posit drivers

# audit.base 0.6.14 _2024-04-04_
- fix: Improve feedback when checking sys deps
Expand Down
7 changes: 4 additions & 3 deletions R/software-versions.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ print_colour_versions = function(installed) {
}

print_colour_version = function(row) {
software_name = glue::glue("{stringr::str_to_title(row$software)} v{row$major}")
latest_version = glue::glue("latest v{row$version}")
major = if ("major" %in% colnames(row)) paste0(" v", row$major) else ""
software_name = glue::glue("{stringr::str_to_title(row$software)}{major}")
latest_version = glue::glue("v{row$version}")
if (is.na(row$installed_version)) {
cli::cli_alert_danger("{software_name}: {latest_version} not installed")
cli::cli_alert_danger("{software_name}: latest {latest_version} not installed")
return(invisible(NULL))
}

Expand Down

0 comments on commit d6263b8

Please sign in to comment.