From ccc7da102bf9bb7788c7060d39fd891900fa593d Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 2 Aug 2023 18:54:14 +0200 Subject: [PATCH] Update clone-repos.ps1 --- Scripts/clone-repos.ps1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Scripts/clone-repos.ps1 b/Scripts/clone-repos.ps1 index 77d74a00..a3d7b8c4 100755 --- a/Scripts/clone-repos.ps1 +++ b/Scripts/clone-repos.ps1 @@ -1,12 +1,17 @@ <# .SYNOPSIS - Clones popular repos + Clones Git repos .DESCRIPTION This PowerShell script clones popular Git repositories into a target directory. .PARAMETER targetDir Specifies the file path to the target directory (current working directory by default) .EXAMPLE PS> ./clone-repos C:\Repos + ⏳ (1) Searching for Git executable... git version 2.41.0.windows.3 + ⏳ (2) Loading Data/popular-git-repos.csv... 28 repos + ⏳ (3) Checking target folder... 📂repos + ⏳ (4/32) Cloning into 📂base256unicode (dev tool)... + ... .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -59,7 +64,7 @@ try { $Cloned++ } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "✔️ cloned $Cloned of $NumEntries Git repos into folder 📂$TargetDirName in $Elapsed sec" + "✔️ Cloning $Cloned of $NumEntries Git repos into folder 📂$TargetDirName took $Elapsed sec" exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"