Improve output

This commit is contained in:
Markus Fleschutz 2021-06-07 20:06:55 +02:00
parent 7a57971d0c
commit 73c7d362da
10 changed files with 10 additions and 10 deletions

View File

@ -24,7 +24,7 @@ try {
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
$Average = [math]::round($Count / $Elapsed, 1)
"✔️ $Average domains/s ($Count domains resolved in $Elapsed sec.)"
"✔️ $Average domains/s ($Count domains resolved in $Elapsed sec)"
exit 0
} catch {
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -25,7 +25,7 @@ try {
if ($lastExitCode -ne "0") { throw "'git clean -fdx' in submodules failed" }
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ cleaned Git repository 📂$RepoDirName in $Elapsed sec."
"✔️ cleaned Git repository 📂$RepoDirName in $Elapsed sec"
exit 0
} catch {
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -31,7 +31,7 @@ try {
}
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ cleaned $($Folders.Count) Git repositories at 📂$ParentDirName in $Elapsed sec."
"✔️ cleaned $($Folders.Count) Git repositories at 📂$ParentDirName in $Elapsed sec"
exit 0
} catch {

View File

@ -32,7 +32,7 @@ try {
$Count++
}
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ cloned $Count Git repositories at 📂$ParentDir in $Elapsed sec."
"✔️ cloned $Count Git repositories at 📂$ParentDir in $Elapsed sec"
exit 0
} catch {
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -29,7 +29,7 @@ try {
}
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ fetched $FolderCount Git repositories at 📂$ParentDirName in $Elapsed sec."
"✔️ fetched $FolderCount Git repositories at 📂$ParentDirName in $Elapsed sec"
exit 0
} catch {
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -109,7 +109,7 @@ try {
set-location "$PreviousPath"
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ built Git repository 📂$RepoDirName in $Elapsed sec."
"✔️ built Git repository 📂$RepoDirName in $Elapsed sec"
exit 0
} catch {
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -21,7 +21,7 @@ try {
}
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ built $($Folders.Count) Git repositories at 📂$ParentDirName in $Elapsed sec."
"✔️ built $($Folders.Count) Git repositories at 📂$ParentDirName in $Elapsed sec"
exit 0
} catch {
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -22,7 +22,7 @@ try {
$RepoDirName = (get-item "$RepoDir").Name
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ pulled updates for Git repository 📂$RepoDirName in $Elapsed sec."
"✔️ pulled updates for Git repository 📂$RepoDirName in $Elapsed sec"
exit 0
} catch {
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -31,7 +31,7 @@ try {
}
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ updated $FolderCount Git repositories at 📂$ParentDirName in $Elapsed sec."
"✔️ updated $FolderCount Git repositories at 📂$ParentDirName in $Elapsed sec"
exit 0
} catch {
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -53,7 +53,7 @@ try {
$fileStream.Dispose()
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ uploaded 📄$Filename to $URL in $Elapsed sec."
"✔️ uploaded 📄$Filename to $URL in $Elapsed sec"
exit 0
} catch {
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds