From 2b7a5216669eeb32df446e89614ab871d52bda30 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar <102276754+abhishekkumams@users.noreply.github.com> Date: Wed, 3 Apr 2024 17:06:12 +0530 Subject: [PATCH] Update notice-generation.ps1 --- scripts/notice-generation.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/notice-generation.ps1 b/scripts/notice-generation.ps1 index 2db23772a6..9adb6dd41d 100644 --- a/scripts/notice-generation.ps1 +++ b/scripts/notice-generation.ps1 @@ -9,14 +9,14 @@ param ( # Download and save the ChilliCream License 1.0 from ChilliCream/graphql-platform GitHub repo $chiliCreamLicenseSavePath = "$BuildArtifactStagingDir/chillicreamlicense.txt" $chiliCreamLicenseMetadataURL = "https://raw.githubusercontent.com/ChilliCream/graphql-platform/main/website/src/basic/licensing/chillicream-license.md" -Invoke-WebRequest $chiliCreamLicenseMetadataURL ` -| Select-Object -ExpandProperty Content ` -| Out-File $chiliCreamLicenseSavePath +Invoke-WebRequest $chiliCreamLicenseMetadataURL -UseBasicParsing | + Select-Object -ExpandProperty Content | + Out-File $chiliCreamLicenseSavePath # Download and save the Microsoft.Data.SqlClient.SNI.runtime license $sqlClientSNILicenseSavePath = "$BuildArtifactStagingDir/sqlclient_sni_runtime.txt" $sqlClientSNILicenseMetadataURL = "https://www.nuget.org/packages/Microsoft.Data.SqlClient.SNI.runtime/5.0.1/License" -$pageContent = Invoke-WebRequest $sqlClientSNILicenseMetadataURL +$pageContent = Invoke-WebRequest $sqlClientSNILicenseMetadataURL -UseBasicParsing # Regular expression with three capture groups. # Capture Group 1: HTML tag which indicates start of license text