Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

place python before ruby on PATH to deconflict aws cli #629

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions windows/helpers/phase2/install_ruby.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ $out = "$($PSScriptRoot)\rubyinstaller.exe"
Get-RemoteFile -RemoteFile $rubyexe -LocalFile $out -VerifyHash $Sha256


# pass nomodpath to avoid putting ruby at the front of the Machine PATH
# we'll add it to the end of the User PATH ourselves
Write-Host -ForegroundColor Green Done downloading Ruby, installing
Start-Process $out -ArgumentList '/verysilent /dir="c:\tools\ruby" /tasks="assocfiles,noridkinstall,modpath"' -Wait
Start-Process $out -ArgumentList '/verysilent /dir="c:\tools\ruby" /tasks="assocfiles,noridkinstall,nomodpath"' -Wait

Add-ToPath -NewPath "c:\tools\ruby\bin" -Local
Add-ToPath -NewPath "c:\tools\ruby\bin" -Local -Global
Add-EnvironmentVariable -Variable RIDK -Value ((Get-Command ridk).Path) -Global
Start-Process gem -ArgumentList 'install bundler -v 2.3.24' -Wait

Expand Down