Update install-basic-apps.ps1

This commit is contained in:
Markus Fleschutz 2023-05-05 12:44:30 +02:00
parent ed2527dd13
commit 7cfe12f137

View File

@ -18,7 +18,7 @@ try {
Write-Host "⏳ (1/32) Loading Data/basic-apps.csv... " -noNewline Write-Host "⏳ (1/32) Loading Data/basic-apps.csv... " -noNewline
$Table = Import-CSV "$PSScriptRoot/../Data/basic-apps.csv" $Table = Import-CSV "$PSScriptRoot/../Data/basic-apps.csv"
$NumEntries = $Table.count $NumEntries = $Table.count
Write-Host "$NumEntries entries" Write-Host "$NumEntries apps"
Write-Host "⏳ (2/32) About to install or upgrade: " -noNewline Write-Host "⏳ (2/32) About to install or upgrade: " -noNewline
foreach($Row in $Table) { foreach($Row in $Table) {
[string]$AppName = $Row.APPLICATION [string]$AppName = $Row.APPLICATION
@ -42,7 +42,7 @@ try {
} }
[int]$Installed = ($NumEntries - $Failed) [int]$Installed = ($NumEntries - $Failed)
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ installed $Installed of $NumEntries basic applications in $Elapsed sec" "✔️ installed $Installed of $NumEntries applications in $Elapsed sec"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"