mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Disable update notification check for daily builds (#10903)
This commit is contained in:
committed by
Dongbo Wang
parent
df811929eb
commit
cca5bceb0f
@@ -106,6 +106,13 @@ namespace Microsoft.PowerShell
|
||||
return;
|
||||
}
|
||||
|
||||
// Daily builds do not support update notifications
|
||||
string preReleaseLabel = PSVersionInfo.PSCurrentVersion.PreReleaseLabel;
|
||||
if (preReleaseLabel != null && preReleaseLabel.StartsWith("daily", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// If the host is not connect to a network, skip the rest of the check.
|
||||
if (!NetworkInterface.GetIsNetworkAvailable())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user