summaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/install-ruby.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'coin/provisioning/common/install-ruby.ps1')
-rw-r--r--coin/provisioning/common/install-ruby.ps13
1 files changed, 3 insertions, 0 deletions
diff --git a/coin/provisioning/common/install-ruby.ps1 b/coin/provisioning/common/install-ruby.ps1
index 332a3a89..be0bc3eb 100644
--- a/coin/provisioning/common/install-ruby.ps1
+++ b/coin/provisioning/common/install-ruby.ps1
@@ -48,4 +48,7 @@ cmd /c "$rubyPackage /silent"
echo "Cleaning $rubyPackage.."
Remove-Item -Recurse -Force "$rubyPackage"
+$oldPath = [System.Environment]::GetEnvironmentVariable('Path', 'Machine')
+[Environment]::SetEnvironmentVariable("Path", $oldPath + ";C:\Ruby22-x64\bin", [EnvironmentVariableTarget]::Machine)
+
echo "Ruby = $version" >> ~\versions.txt