Fix the comment to use Write-Warning

This commit is contained in:
Gordon Lam (SH)
2025-06-11 13:39:01 +08:00
parent 8c793fff20
commit 3e05bcd4dd

View File

@@ -79,7 +79,7 @@ $noticeMatch = [regex]::Match($noticeFile, $noticePattern)
if ($noticeMatch.Success) {
$currentNoticePackageList = $noticeMatch.Groups[1].Value.Trim()
} else {
Write-Host -ForegroundColor Yellow "Warning: Could not find 'NuGet Packages used by PowerToys' section in NOTICE.md"
Write-Warning "Warning: Could not find 'NuGet Packages used by PowerToys' section in NOTICE.md"
$currentNoticePackageList = ""
}