gentoo-ebuilds/app-shells/pwsh/files/pwsh-7.3.3-disable-update-check.patch
Maciej Barć ecfbc9addf
app-shells/pwsh: new package; add 7.3.6
Closes: https://github.com/gentoo/gentoo/pull/21451
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
2023-09-16 09:50:47 +02:00

11 lines
536 B
Diff

--- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/UpdatesNotification.cs
+++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/UpdatesNotification.cs
@@ -395,7 +395,7 @@ namespace Microsoft.PowerShell
string str = Environment.GetEnvironmentVariable(UpdateCheckEnvVar);
if (string.IsNullOrEmpty(str))
{
- return NotificationType.Default;
+ return NotificationType.Off;
}
if (Enum.TryParse(str, ignoreCase: true, out NotificationType type))