From c41460521fa6ed26455f01e42e9c37e888015754 Mon Sep 17 00:00:00 2001 From: Michael Grafnetter Date: Sun, 6 Oct 2024 17:36:30 +0200 Subject: [PATCH] Fix install script --- .github/README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/README.md b/.github/README.md index 16eaa4e..26966a6 100644 --- a/.github/README.md +++ b/.github/README.md @@ -58,13 +58,16 @@ Additional steps might be required on some freshly installed computers before DS ```powershell # TLS 1.2 must be enabled on older versions of Windows. -[System.Net.ServicePointManager]::SecurityProtocol += [System.Net.SecurityProtocolType]::Tls12 +[System.Net.ServicePointManager]::SecurityProtocol = + [System.Net.ServicePointManager]::SecurityProtocol -bor [System.Net.SecurityProtocolType]::Tls12 # Download the NuGet package manager binary. Install-PackageProvider -Name NuGet -Force # Register the PowerShell Gallery as package repository if it is missing for any reason. -if($null -eq (Get-PSRepository -Name PSGallery -ErrorAction SilentlyContinue)) { Register-PSRepository -Default } +if($null -eq (Get-PSRepository -Name PSGallery -ErrorAction SilentlyContinue)) { + Register-PSRepository -Default +} # Download the DSInternals PowerShell module. Install-Module -Name DSInternals -Force