Disable update notification check for daily builds (#10903)

This commit is contained in:
Christoph Bergmeister [MVP] 2019-10-31 20:14:08 +00:00 committed by Dongbo Wang
parent df811929eb
commit cca5bceb0f

View File

@ -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())
{