mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-28 09:19:17 +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
|
# Remove Android sdk and ndk
|
||||||
dir c:\utils\android* | ForEach { Rename-Item $_ $_"-deleted" }
|
If (Test-Path "c:\utils") {
|
||||||
[Environment]::SetEnvironmentVariable("ANDROID_NDK_HOME",$null,"User")
|
dir c:\utils\android* | ForEach { Rename-Item $_ $_"-deleted" }
|
||||||
[Environment]::SetEnvironmentVariable("ANDROID_SDK_HOME",$null,"User")
|
[Environment]::SetEnvironmentVariable("ANDROID_NDK_HOME",$null,"User")
|
||||||
|
[Environment]::SetEnvironmentVariable("ANDROID_SDK_HOME",$null,"User")
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user