Fix adding to path lines for Windows provisioning scripts
[mirror/qt/qt5.git] / coin / provisioning / common / install-ruby.ps1
index 332a3a8..be0bc3e 100644 (file)
@@ -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