remove ruby doc folder

This commit is contained in:
Aleksandr Chebotov
2020-11-13 10:25:05 +03:00
parent fe3f5efbe8
commit 5534aa6946
2 changed files with 5 additions and 10 deletions

View File

@@ -60,7 +60,7 @@ function Install-Ruby
if (-not (Test-Path $rubyToolcachePath))
{
Write-Host "Create Ruby toolcache folder"
Write-Host "Creating Ruby toolcache folder"
New-Item -ItemType Directory -Path $rubyToolcachePath | Out-Null
}
@@ -70,6 +70,9 @@ function Install-Ruby
Write-Host "Moving Ruby '${rubyVersion}' files to '${rubyArchPath}'"
Move-Item -Path $tempFolder -Destination $rubyArchPath | Out-Null
Write-Host "Removing Ruby '${rubyVersion}' documentation '${rubyArchPath}\share\doc' folder"
Remove-Item -Path "${rubyArchPath}\share\doc" -Force -Recurse -ErrorAction Ignore
Write-Host "Installing Bundler"
cmd.exe /c "$rubyArchPath\bin\gem.cmd install bundler -v ""~> 2"" --no-document"