mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-23 13:11:39 +01:00
Improve both scripts
This commit is contained in:
parent
59a7e492fe
commit
8f5b4a7337
@ -28,7 +28,7 @@ try {
|
||||
$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
|
||||
} catch {
|
||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
@ -19,7 +19,7 @@ try {
|
||||
|
||||
[int]$Count = 0
|
||||
get-childItem $ParentDir -attributes Directory | foreach-object {
|
||||
"⏳ Pulling updates for Git repository $($_.FullName)..."
|
||||
"⏳ Pulling updates for Git repository 📂$($_.FullName) ..."
|
||||
|
||||
set-location $_.FullName
|
||||
|
||||
@ -30,7 +30,7 @@ try {
|
||||
$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
|
||||
} catch {
|
||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user