Skip to content

Commit

Permalink
add fixed to grep
Browse files Browse the repository at this point in the history
Co-authored-by: Lluís Revilla <[email protected]>
  • Loading branch information
alexhroom and llrs authored Sep 16, 2024
1 parent 17722c6 commit 139b910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/library/tools/R/check.R
Original file line number Diff line number Diff line change
Expand Up @@ -3956,8 +3956,8 @@ add_dummies <- function(dir, Log)
OK <- FALSE
msg <- c(msg, "Package compiles Rust but SystemRequirements not provided")
}
rustc_desc <- any(grep("rustc", sysreqs, ignore.case = TRUE))
cargo_desc <- any(grep("cargo", sysreqs, ignore.case = TRUE))
rustc_desc <- any(grep("rustc", sysreqs, ignore.case = TRUE, fixed = TRUE))
cargo_desc <- any(grep("cargo", sysreqs, ignore.case = TRUE, fixed = TRUE))
if(!rustc_desc) {
OK <- FALSE
msg <- c(msg, "Package compiles Rust but rustc not in DESCRIPTION")
Expand Down

0 comments on commit 139b910

Please sign in to comment.