mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-20 11:56:31 +08:00
Fix Add-Path helper function and start using it in scripts
This function was broken and only added the latest addition to the actual PATH. Change-Id: Ida352c7b605c1b9748bb98e4f51ce68a765c3ce3 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
@@ -55,7 +55,6 @@ 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)
|
||||
Add-Path "C:\Ruby22-x64\bin"
|
||||
|
||||
echo "Ruby = $version" >> ~\versions.txt
|
||||
|
||||
Reference in New Issue
Block a user