From 866c9044e28cabca14fe1522714a6ea53151e799 Mon Sep 17 00:00:00 2001 From: icedream Date: Mon, 12 Jan 2015 05:20:26 +0100 Subject: [PATCH] Make yes command not print out pipe break error. --- src/updater/Program.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/updater/Program.cs b/src/updater/Program.cs index e179e27..08c2b70 100644 --- a/src/updater/Program.cs +++ b/src/updater/Program.cs @@ -319,10 +319,11 @@ namespace CitizenMP.Server.Installer // Import Mozilla certs for NuGet to not fail out try { + // TODO: Make sure this does not fail out by checking if mozroots is installed Run("mozroots", "--import --sync"); - Run("sh", "-c \"yes y | certmgr -ssl https://go.microsoft.com\""); - Run("sh", "-c \"yes y | 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://go.microsoft.com\""); + Run("sh", "-c \"yes y 2>NUL | certmgr -ssl https://nugetgallery.blob.core.windows.net\""); + Run("sh", "-c \"yes y 2>NUL | certmgr -ssl https://nuget.org\""); } catch (Exception error) {