Update install-updates.ps1

This commit is contained in:
Markus Fleschutz 2024-05-14 21:33:14 +02:00
parent 6a413827df
commit b2c6f7ea22

View File

@ -59,7 +59,7 @@ try {
& winget upgrade --all --include-unknown & winget upgrade --all --include-unknown
} }
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds [int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✅ Updates installed in $elapsed sec." "✅ Updates installed in $($elapsed)s."
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"