Skip to content

Commit 25bddb1

Browse files
committed
Skip if installed
1 parent 0fe6663 commit 25bddb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
$RTOOLS = if ('${{ matrix.os }}' -eq 'windows-11-arm') { "rtools45-$ARCH" } else { 'rtools45' }
4949
5050
# Installation will hang if the toolchain is already installed
51-
if (-Not Test-Path -Path "$RTOOLS") {
51+
if (-Not $(Test-Path -Path "C:/$RTOOLS")) {
5252
Invoke-WebRequest `
5353
-Uri https://github.com/r-hub/rtools45/releases/download/latest/$RTOOLS.exe `
5454
-Headers @{ 'Authorization' = "Bearer ${{ secrets.GITHUB_TOKEN }}" } `

0 commit comments

Comments
 (0)