diff options
Diffstat (limited to 'app-shells/pwsh/files/pwsh-7.3.3-disable-update-check.patch')
-rw-r--r-- | app-shells/pwsh/files/pwsh-7.3.3-disable-update-check.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app-shells/pwsh/files/pwsh-7.3.3-disable-update-check.patch b/app-shells/pwsh/files/pwsh-7.3.3-disable-update-check.patch new file mode 100644 index 000000000000..7e2efd4232bb --- /dev/null +++ b/app-shells/pwsh/files/pwsh-7.3.3-disable-update-check.patch @@ -0,0 +1,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)) |