Skip to content

Commit

Permalink
Check if paths exist
Browse files Browse the repository at this point in the history
  • Loading branch information
zero323 committed Oct 9, 2020
1 parent cf4af04 commit b6475be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dev/appveyor-install-dependencies.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ Function InstallR {

# Testing R installation
Rscript -e "sessionInfo()"

if ( -not (Test-Path -Path 'C:\MinGW\msys\1.0\bin') ) { echo "MinGW\msys doesn't exist" }
}

Function InstallRtools {
Expand All @@ -69,6 +71,8 @@ Function InstallRtools {
}
$env:PATH = $RtoolsDrive + '\Rtools40\bin;' + $RtoolsDrive + '\Rtools40\mingw64\bin;' + $RtoolsDrive + '\Rtools40\' + $gccPath + '\bin;' + $env:PATH
$env:BINPREF=$RtoolsDrive + '/Rtools40/mingw$(WIN)/bin/'

if ( -not (Test-Path -Path $($RtoolsDrive + '\Rtools40\' + $gccPath + '\bin')) ) { echo "gccPath doesn't exist" }
}

# create tools directory outside of Spark directory
Expand Down

0 comments on commit b6475be

Please sign in to comment.