Disable update notification check for daily builds (#10903)
This commit is contained in:
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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user