mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-05 06:48:25 +02:00
Update install-basic-apps.ps1
This commit is contained in:
parent
ed2527dd13
commit
7cfe12f137
@ -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])"
|
||||||
|
Loading…
Reference in New Issue
Block a user