mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-24 13:40:59 +01:00
Improve the output
This commit is contained in:
parent
6b66cb1b6c
commit
07fdba4d1d
@ -28,7 +28,7 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||||
"✔️ fetched $Count Git repositories at 📂$ParentDir in $Elapsed sec."
|
"✔️ fetched updates for $Count Git repositories at 📂$ParentDir in $Elapsed sec."
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -18,7 +18,7 @@ try {
|
|||||||
|
|
||||||
[int]$Count = 0
|
[int]$Count = 0
|
||||||
get-childItem $ParentDir -attributes Directory | foreach-object {
|
get-childItem $ParentDir -attributes Directory | foreach-object {
|
||||||
"⏳ Pulling updates for Git repository 📂$($_.FullName) ..."
|
"⏳ Pulling updates for Git repository 📂$($_.Name) ..."
|
||||||
|
|
||||||
set-location $_.FullName
|
set-location $_.FullName
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||||
"✔️ updated $Count Git repositories at 📂$ParentDir in $Elapsed sec."
|
"✔️ pulled updates for $Count Git repositories at 📂$ParentDir in $Elapsed sec."
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user