This commit is contained in:
Vladimir Safonkin 2021-02-03 16:15:36 +03:00
parent 76a91b1af8
commit 347456b934

View File

@ -24,4 +24,10 @@ foreach ($path in $pathsToClear) {
}
}
Get-Command "dotnet --info"
try {
Get-Command "dotnet --info"
Write-Host "dotnet was not removed"
exit 1
} catch {
Write-Host "dotnet was removed successfully"
}