Improve both scripts

This commit is contained in:
Markus Fleschutz 2021-04-21 10:54:53 +02:00
parent 59a7e492fe
commit 8f5b4a7337
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ try {
$Count++ $Count++
} }
write-host -foregroundColor green "✔️ Updates fetched for $Count Git repositories under $ParentDir in $($StopWatch.Elapsed.Seconds) second(s)" "✔️ updated $Count Git repositories at 📂$ParentDir in $($StopWatch.Elapsed.Seconds) sec."
exit 0 exit 0
} catch { } catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -19,7 +19,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 📂$($_.FullName) ..."
set-location $_.FullName set-location $_.FullName
@ -30,7 +30,7 @@ try {
$Count++ $Count++
} }
write-host -foregroundColor green "✔️ Updates pulled for $Count Git repositories under $ParentDir in $($StopWatch.Elapsed.Seconds) second(s)" "✔️ updated $Count Git repositories at 📂$ParentDir in $($StopWatch.Elapsed.Seconds) sec."
exit 0 exit 0
} catch { } catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"