Skip to content

Commit

Permalink
fix string interp
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Sep 19, 2023
1 parent 6aa9544 commit a139fb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .ci/test_r_package_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,14 @@ if ($env:COMPILER -ne "MSVC") {

# Checking that the correct R version was used
if ($env:TOOLCHAIN -ne "MSVC") {
$checks = Select-String -Path "${INSTALL_LOG_FILE_NAME}" -Pattern "using R version 9.$R_WINDOWS_VERSION"
$checks = Select-String -Path "${INSTALL_LOG_FILE_NAME}" -Pattern "using R version 9.$env:R_WINDOWS_VERSION"
$checks_cnt = $checks.Matches.length
} else {
$checks = Select-String -Path "${INSTALL_LOG_FILE_NAME}" -Pattern "R version passed into FindLibR.* 9.$R_WINDOWS_VERSION"
$checks = Select-String -Path "${INSTALL_LOG_FILE_NAME}" -Pattern "R version passed into FindLibR.* 9.$env:R_WINDOWS_VERSION"
$checks_cnt = $checks.Matches.length
}
if ($checks_cnt -eq 0) {
Write-Output "Wrong R version was found (expected '$R_WINDOWS_VERSION'). Check the build logs."
Write-Output "Wrong R version was found (expected '$env:R_WINDOWS_VERSION'). Check the build logs."
Check-Output $False
}

Expand Down

0 comments on commit a139fb0

Please sign in to comment.