From e8055c1474ff7f7d0fc72c2f90109e05a7ff149c Mon Sep 17 00:00:00 2001
From: Manuel Thalmann <m@nuth.ch>
Date: Fri, 8 Dec 2023 17:22:39 +0100
Subject: [PATCH] Fix outdated `winget` syntax

---
 scripts/Windows/Collections/Generic.ps1  | 14 ++++++--------
 scripts/Windows/Collections/Personal.ps1 |  3 +--
 2 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/scripts/Windows/Collections/Generic.ps1 b/scripts/Windows/Collections/Generic.ps1
index 04a6c40b..236c1eef 100644
--- a/scripts/Windows/Collections/Generic.ps1
+++ b/scripts/Windows/Collections/Generic.ps1
@@ -38,12 +38,11 @@ function Restore-GenericApps([Context] $context) {
     Install-Firefox $context;
     . "$PSScriptRoot/../Software/MSEdgeRedirect/Install.ps1";
 
-    winget install --accept-source-agreements --accept-package-agreements `
-        -e --id Mozilla.Firefox.DeveloperEdition `
-        -e --id Mozilla.Firefox.Nightly `
-        -e --id Brave.Brave `
-        -e --id Brave.Brave.Beta `
-        -e --id Brave.Brave.Nightly;
+    winget install --accept-source-agreements --accept-package-agreements -e --id Mozilla.Firefox.DeveloperEdition;
+    winget install --accept-source-agreements --accept-package-agreements -e --id Mozilla.Firefox.Nightly;
+    winget install --accept-source-agreements --accept-package-agreements -e --id Brave.Brave;
+    winget install --accept-source-agreements --accept-package-agreements -e --id Brave.Brave.Beta;
+    winget install --accept-source-agreements --accept-package-agreements -e --id Brave.Brave.Nightly;
 
     $context.RemoveTaskbarItem("*Firefox*");
     $context.RemoveDesktopIcon("*Brave*");
@@ -58,8 +57,7 @@ function Restore-GenericApps([Context] $context) {
         procexp `
         procmon;
 
-    winget install --accept-source-agreements --accept-package-agreements `
-        -e --id KDE.KDEConnect;
+    winget install --accept-source-agreements --accept-package-agreements -e --id KDE.KDEConnect;
 
     # Media
     choco install -y k-litecodecpackmega;
diff --git a/scripts/Windows/Collections/Personal.ps1 b/scripts/Windows/Collections/Personal.ps1
index 5e5fa116..8ea060cc 100644
--- a/scripts/Windows/Collections/Personal.ps1
+++ b/scripts/Windows/Collections/Personal.ps1
@@ -72,8 +72,7 @@ function Restore-PersonalApps([Context] $context) {
         obs-studio `
         openvpn;
 
-    winget install --accept-source-agreements --accept-package-agreements `
-        -e --id AntSoftware.AntRenamer;
+    winget install --accept-source-agreements --accept-package-agreements -e --id AntSoftware.AntRenamer;
 
     $context.RemoveDesktopIcon("GPU-Z*");
     $context.RemoveDesktopIcon("WinDirStat*");