|
|
|
@ -20,14 +20,6 @@ if ($os -eq "Linux") {
|
|
|
|
foreach ($path in $pathsToClear) {
|
|
|
|
foreach ($path in $pathsToClear) {
|
|
|
|
if (Test-Path $path) {
|
|
|
|
if (Test-Path $path) {
|
|
|
|
Write-Host "Clear $path path"
|
|
|
|
Write-Host "Clear $path path"
|
|
|
|
# Remove-Item $path -Recurse -Force
|
|
|
|
Remove-Item $path -Recurse -Force
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
Get-Command "dotnet --info"
|
|
|
|
|
|
|
|
Write-Host "dotnet was not removed"
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
|
|
Write-Host "dotnet was removed successfully"
|
|
|
|
|
|
|
|
}
|
|
|
|
|