Make yes command not print out pipe break error.

release-1.0.0
Icedream 2015-01-12 05:20:26 +01:00
parent b311d7810f
commit 866c9044e2
1 changed files with 4 additions and 3 deletions

View File

@ -319,10 +319,11 @@ namespace CitizenMP.Server.Installer
// Import Mozilla certs for NuGet to not fail out // Import Mozilla certs for NuGet to not fail out
try try
{ {
// TODO: Make sure this does not fail out by checking if mozroots is installed
Run("mozroots", "--import --sync"); Run("mozroots", "--import --sync");
Run("sh", "-c \"yes y | certmgr -ssl https://go.microsoft.com\""); Run("sh", "-c \"yes y 2>NUL | certmgr -ssl https://go.microsoft.com\"");
Run("sh", "-c \"yes y | certmgr -ssl https://nugetgallery.blob.core.windows.net\""); Run("sh", "-c \"yes y 2>NUL | certmgr -ssl https://nugetgallery.blob.core.windows.net\"");
Run("sh", "-c \"yes y | certmgr -ssl https://nuget.org\""); Run("sh", "-c \"yes y 2>NUL | certmgr -ssl https://nuget.org\"");
} }
catch (Exception error) catch (Exception error)
{ {