From 002bc548192ed935123ea70cfe48aa5c7218096c Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Mon, 20 Jan 2025 23:59:11 +0000 Subject: [PATCH] Fix win_winget requesting input --- library/win_winget.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/win_winget.ps1 b/library/win_winget.ps1 index 6c4909f..6244241 100644 --- a/library/win_winget.ps1 +++ b/library/win_winget.ps1 @@ -67,7 +67,7 @@ foreach ($name in $names) { "latest" { if (Test-UpgradeAvailable) { - $command = "`"$winget`" install --accept-package-agreements `"$name`"" + $command = "`"$winget`" install --accept-package-agreements --accept-source-agreements `"$name`"" $result = Run-Command -command $command if ($result.rc -ne 0) { $module.Result.rc = $result.rc @@ -81,7 +81,7 @@ foreach ($name in $names) { "present" { if (!(Test-Installed)) { - $command = "`"$winget`" install --accept-package-agreements `"$name`"" + $command = "`"$winget`" install --accept-package-agreements --accept-source-agreements `"$name`"" $result = Run-Command -command $command if ($result.rc -ne 0) { $module.Result.rc = $result.rc