Fix win_winget requesting input
This commit is contained in:
parent
6b77328851
commit
002bc54819
@ -67,7 +67,7 @@ foreach ($name in $names) {
|
|||||||
|
|
||||||
"latest" {
|
"latest" {
|
||||||
if (Test-UpgradeAvailable) {
|
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
|
$result = Run-Command -command $command
|
||||||
if ($result.rc -ne 0) {
|
if ($result.rc -ne 0) {
|
||||||
$module.Result.rc = $result.rc
|
$module.Result.rc = $result.rc
|
||||||
@ -81,7 +81,7 @@ foreach ($name in $names) {
|
|||||||
|
|
||||||
"present" {
|
"present" {
|
||||||
if (!(Test-Installed)) {
|
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
|
$result = Run-Command -command $command
|
||||||
if ($result.rc -ne 0) {
|
if ($result.rc -ne 0) {
|
||||||
$module.Result.rc = $result.rc
|
$module.Result.rc = $result.rc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user