test nuova sisntassi controllo

This commit is contained in:
Samuele Locatelli
2022-04-02 12:42:33 +02:00
parent 697058a89a
commit d533c0ddbf
+10 -10
View File
@@ -6,18 +6,18 @@ variables:
.nuget-fix: &nuget-fix
- |
dotnet nuget list source
$hasSource = dotnet nuget list source | find "`"Steamware Nexus Proxy`"" /C
if ($hasSource -eq 1) {
$hasSource = [String]::IsNullOrWhiteSpace(dotnet nuget list source | Select-String -Pattern "Steamware Nexus Proxy")
if (!$hasSource) {
dotnet nuget remove source "`"Steamware Nexus Proxy`""
}
$hasSource = dotnet nuget list source | find "`"Steamware Nexus`"" /C
if ($hasSource -eq 1) {
dotnet nuget remove source "`"Steamware Nexus`""
}
$hasSource = dotnet nuget list source | find nexus-proxy-v3 /C
if ($hasSource -eq 1) {
dotnet nuget remove source nexus-proxy-v3
}
# $hasSource = dotnet nuget list source | find "`"Steamware Nexus`"" /C
# if ($hasSource -eq 1) {
# dotnet nuget remove source "`"Steamware Nexus`""
# }
# $hasSource = dotnet nuget list source | find nexus-proxy-v3 /C
# if ($hasSource -eq 1) {
# dotnet nuget remove source nexus-proxy-v3
# }
# dotnet nuget remove source nexus-proxy-v3
# dotnet nuget add source https://nexus.steamware.net/repository/nuget-proxy-v3/index.json -n nexus-proxy-v3 -u nugetUser -p viaDante16 --valid-authentication-types basic