This commit is contained in:
Vladimir Safonkin 2021-02-03 15:31:11 +03:00
parent c8cf369c29
commit 7669e56997
1 changed files with 6 additions and 3 deletions

View File

@ -2,9 +2,11 @@ Write-Host $args[0]
$os = $args[0]
$linuxDotnetPaths = @("/usr/share/dotnet")
$macOSDotnetPaths = @("/Users/runner/.dotnet")
$windowsDotnetPaths = @("$env:LocalAppData\Microsoft\dotnet/*", "$env:ProgramFiles\dotnet/*")
$linuxDotnetPaths = @("/usr/share/dotnet", "$env:HOME/.dotnet")
$macOSDotnetPaths = @("$env:HOME/.dotnet")
$windowsDotnetPaths = @("$env:LocalAppData\Microsoft\dotnet/*",
"$env:ProgramFiles\dotnet/*",
"$env:HOME\.dotnet")
$pathsToClear = @()
@ -13,6 +15,7 @@ if ($os -eq "Linux") {
} elseif ($os -eq "macOS") {
$pathsToClear = $macOSDotnetPaths
} elseif ($os -eq "Windows") {
Write-Host $env:LocalAppData
$pathsToClear = $windowsDotnetPaths
}