From db4cc549f4ade31582b5758c39e8344d7f2c9af4 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 1 Aug 2023 01:04:49 +0200 Subject: [PATCH] Ignore expected errors --- scripts/Windows/Scripts/Prerequisites.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/Scripts/Prerequisites.ps1 b/scripts/Windows/Scripts/Prerequisites.ps1 index 83111d2e..4d0ed723 100644 --- a/scripts/Windows/Scripts/Prerequisites.ps1 +++ b/scripts/Windows/Scripts/Prerequisites.ps1 @@ -27,6 +27,6 @@ foreach ($nativeModule in @("PinnedItem")) { } } -if (-not (Get-Command 7z)) { +if (-not (Get-Command 7z -ErrorAction SilentlyContinue)) { choco install -y 7zip.portable; }