From a81727f696b9f09541c4f57288381a290f8b9d3e Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 28 Aug 2024 04:38:56 +0200 Subject: [PATCH] Ensure `7z` is installed for backups --- scripts/Common/Scripts/Operations.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/Common/Scripts/Operations.ps1 b/scripts/Common/Scripts/Operations.ps1 index 6f8dc6e1..77a77d5c 100644 --- a/scripts/Common/Scripts/Operations.ps1 +++ b/scripts/Common/Scripts/Operations.ps1 @@ -169,6 +169,12 @@ $null = New-Module { continue; } + if (-not (Test-Command "7z")) { + Install-ChocoPackage 7zip.portable; + refreshenv; + continue; + } + if (-not (Test-Command "yq")) { Install-ChocoPackage "yq"; refreshenv;