Make yes command not print out pipe break error.
parent
b311d7810f
commit
866c9044e2
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue