You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-full-overlay/app-shells/pwsh/files/pwsh-7.3.3-disable-update-c...

12 lines
536 B

--- 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))