From a03b9add986f585d57c1795291e52402958f9f4a Mon Sep 17 00:00:00 2001 From: TheFlyingFool Date: Tue, 21 May 2024 16:23:34 -0500 Subject: [PATCH] Think I found a more eligant solution --- setup.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.ps1 b/setup.ps1 index a5f8f25..ab322fb 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -31,7 +31,6 @@ $settingsJson = @{installBehavior = @{ } $settingsJson | ConvertTo-Json | Out-File $settingsPath -Encoding utf8 -winget search test function InstallTheApps() { Foreach ($app in $apps) { @@ -39,11 +38,11 @@ function InstallTheApps() { if (![String]::Join("", $listApp).Contains($app.name)) { Write-host "Installing:" $app.name if ($null -ne $app.source) { - winget install --exact $app.name --source $app.source + winget install --exact $app.name --source $app.source --accept-source-agreements --accept-package-agreements # winget install --exact --silent $app.name --source $app.source } else { - winget install --exact $app.name + winget install --exact $app.name --accept-source-agreements --accept-package-agreements # winget install --exact --silent $app.name } }