Accept winget package agreements
This commit is contained in:
parent
5eb6570617
commit
df5390c31e
@ -67,7 +67,7 @@ foreach ($name in $names) {
|
||||
|
||||
"latest" {
|
||||
if (Test-UpgradeAvailable) {
|
||||
$command = "`"$winget`" install `"$name`""
|
||||
$command = "`"$winget`" install --accept-package-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 `"$name`""
|
||||
$command = "`"$winget`" install --accept-package-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