mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-11 05:43:53 +02:00
Improve the scripts
This commit is contained in:
@ -30,9 +30,8 @@ try {
|
||||
$Count++
|
||||
}
|
||||
|
||||
$StopTime = get-date
|
||||
$TimeSpan = new-timeSpan -start $StartTime -end $StopTime
|
||||
write-host -foregroundColor green "OK - fetched updates for $Count Git repositories under $ParentDir in $($TimeSpan.seconds) second(s)"
|
||||
$Elapsed = new-timeSpan -start $StartTime -end (get-date)
|
||||
write-host -foregroundColor green "OK - fetched updates for $Count Git repositories under $ParentDir in $($Elapsed.seconds) second(s)"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Reference in New Issue
Block a user