Fix win_winget requesting input
This commit is contained in:
parent
6b77328851
commit
002bc54819
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user