Function ReWrite?
This commit is contained in:
parent
d3b84021e4
commit
b476c9238b
26
setup.ps1
26
setup.ps1
@ -26,22 +26,22 @@ $settingsJson = @{installBehavior = @{
|
|||||||
}
|
}
|
||||||
$settingsJson | ConvertTo-Json | Out-File $settingsPath -Encoding utf8
|
$settingsJson | ConvertTo-Json | Out-File $settingsPath -Encoding utf8
|
||||||
|
|
||||||
function InstallTheApps([array]$AppList) {
|
function InstallTheApps() {
|
||||||
Foreach ($app in $AppList) {
|
Foreach ($app in $apps) {
|
||||||
$listApp = winget list --exact -q $app.name
|
$listApp = winget list --exact -q $app.name
|
||||||
if (![String]::Join('', $listApp).Contains($app.name)) {
|
if (![String]::Join("", $listApp).Contains($app.name)) {
|
||||||
Write-Host 'Installing:' $app.name
|
Write-host "Installing:" $app.name
|
||||||
if ($null -ne $app.source) {
|
if ($null -ne $app.source) {
|
||||||
winget install --exact $app.name --source $app.source
|
winget install --exact $app.name --source $app.source
|
||||||
# winget install --exact --silent $app.name --source $app.source
|
# winget install --exact --silent $app.name --source $app.source
|
||||||
}
|
|
||||||
else {
|
|
||||||
winget install --exact $app.name
|
|
||||||
# winget install --exact --silent $app.name
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-Host 'Skipping Install of ' $app.name
|
winget install --exact $app.name
|
||||||
|
# winget install --exact --silent $app.name
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Write-host "Skipping Install of " $app.name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user