From 73c7d362daeb058c37b26f8ab9cea9733e539965 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 7 Jun 2021 20:06:55 +0200 Subject: [PATCH] Improve output --- Scripts/check-dns-resolution.ps1 | 2 +- Scripts/clean-repo.ps1 | 2 +- Scripts/clean-repos.ps1 | 2 +- Scripts/clone-repos.ps1 | 2 +- Scripts/fetch-repos.ps1 | 2 +- Scripts/make-repo.ps1 | 2 +- Scripts/make-repos.ps1 | 2 +- Scripts/pull-repo.ps1 | 2 +- Scripts/pull-repos.ps1 | 2 +- Scripts/upload-file.ps1 | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Scripts/check-dns-resolution.ps1 b/Scripts/check-dns-resolution.ps1 index 95cb4f6e..c4f96cfb 100755 --- a/Scripts/check-dns-resolution.ps1 +++ b/Scripts/check-dns-resolution.ps1 @@ -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])" diff --git a/Scripts/clean-repo.ps1 b/Scripts/clean-repo.ps1 index d5c5d15a..bab58ddd 100755 --- a/Scripts/clean-repo.ps1 +++ b/Scripts/clean-repo.ps1 @@ -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])" diff --git a/Scripts/clean-repos.ps1 b/Scripts/clean-repos.ps1 index bdf39805..9c30aba0 100755 --- a/Scripts/clean-repos.ps1 +++ b/Scripts/clean-repos.ps1 @@ -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 { diff --git a/Scripts/clone-repos.ps1 b/Scripts/clone-repos.ps1 index b370836f..091f33cf 100755 --- a/Scripts/clone-repos.ps1 +++ b/Scripts/clone-repos.ps1 @@ -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])" diff --git a/Scripts/fetch-repos.ps1 b/Scripts/fetch-repos.ps1 index e6b4dbc6..27587550 100755 --- a/Scripts/fetch-repos.ps1 +++ b/Scripts/fetch-repos.ps1 @@ -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])" diff --git a/Scripts/make-repo.ps1 b/Scripts/make-repo.ps1 index 78a2959c..6c102fcd 100755 --- a/Scripts/make-repo.ps1 +++ b/Scripts/make-repo.ps1 @@ -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])" diff --git a/Scripts/make-repos.ps1 b/Scripts/make-repos.ps1 index 2ffbf78b..6c2f3a24 100755 --- a/Scripts/make-repos.ps1 +++ b/Scripts/make-repos.ps1 @@ -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])" diff --git a/Scripts/pull-repo.ps1 b/Scripts/pull-repo.ps1 index a9bd30aa..2a2e2c9b 100755 --- a/Scripts/pull-repo.ps1 +++ b/Scripts/pull-repo.ps1 @@ -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])" diff --git a/Scripts/pull-repos.ps1 b/Scripts/pull-repos.ps1 index a6f98f07..b6b66f5d 100755 --- a/Scripts/pull-repos.ps1 +++ b/Scripts/pull-repos.ps1 @@ -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])" diff --git a/Scripts/upload-file.ps1 b/Scripts/upload-file.ps1 index 1d67c4c7..5469960c 100644 --- a/Scripts/upload-file.ps1 +++ b/Scripts/upload-file.ps1 @@ -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