mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-26 13:23:05 +07:00
Debug
This commit is contained in:
parent
c8cf369c29
commit
7669e56997
@ -2,9 +2,11 @@ Write-Host $args[0]
|
|||||||
|
|
||||||
$os = $args[0]
|
$os = $args[0]
|
||||||
|
|
||||||
$linuxDotnetPaths = @("/usr/share/dotnet")
|
$linuxDotnetPaths = @("/usr/share/dotnet", "$env:HOME/.dotnet")
|
||||||
$macOSDotnetPaths = @("/Users/runner/.dotnet")
|
$macOSDotnetPaths = @("$env:HOME/.dotnet")
|
||||||
$windowsDotnetPaths = @("$env:LocalAppData\Microsoft\dotnet/*", "$env:ProgramFiles\dotnet/*")
|
$windowsDotnetPaths = @("$env:LocalAppData\Microsoft\dotnet/*",
|
||||||
|
"$env:ProgramFiles\dotnet/*",
|
||||||
|
"$env:HOME\.dotnet")
|
||||||
|
|
||||||
$pathsToClear = @()
|
$pathsToClear = @()
|
||||||
|
|
||||||
@ -13,6 +15,7 @@ if ($os -eq "Linux") {
|
|||||||
} elseif ($os -eq "macOS") {
|
} elseif ($os -eq "macOS") {
|
||||||
$pathsToClear = $macOSDotnetPaths
|
$pathsToClear = $macOSDotnetPaths
|
||||||
} elseif ($os -eq "Windows") {
|
} elseif ($os -eq "Windows") {
|
||||||
|
Write-Host $env:LocalAppData
|
||||||
$pathsToClear = $windowsDotnetPaths
|
$pathsToClear = $windowsDotnetPaths
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user