summaryrefslogtreecommitdiff
path: root/app-shells/pwsh/files/pwsh-7.3.3-disable-update-check.patch
blob: 7e2efd4232bb80b6174548d2fa91c56d0fcc8f6d (plain)
1
2
3
4
5
6
7
8
9
10
11
--- 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))