From d533c0ddbf6010ee83fbd3a49805f5c5342a79fb Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Sat, 2 Apr 2022 12:42:33 +0200 Subject: [PATCH] test nuova sisntassi controllo --- .gitlab-ci.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 42cb439..e0d0630 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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