mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-29 01:46:46 +08:00
Provisioning on windows: Fix deletion of utils
We want to be able to re-provision machiens without errors. The directory doesn't exist on the machine any more. Change-Id: I2b5b92037492e51aeb4d041d62f371b8546cb0a3 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
This commit is contained in:
committed by
Tony Sarajärvi
parent
324a16f67c
commit
24f6a2f28a
@@ -56,6 +56,8 @@ Function Remove-Path {
|
||||
}
|
||||
|
||||
# Remove Android sdk and ndk
|
||||
dir c:\utils\android* | ForEach { Rename-Item $_ $_"-deleted" }
|
||||
[Environment]::SetEnvironmentVariable("ANDROID_NDK_HOME",$null,"User")
|
||||
[Environment]::SetEnvironmentVariable("ANDROID_SDK_HOME",$null,"User")
|
||||
If (Test-Path "c:\utils") {
|
||||
dir c:\utils\android* | ForEach { Rename-Item $_ $_"-deleted" }
|
||||
[Environment]::SetEnvironmentVariable("ANDROID_NDK_HOME",$null,"User")
|
||||
[Environment]::SetEnvironmentVariable("ANDROID_SDK_HOME",$null,"User")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user