Update pull-repo.ps1

This commit is contained in:
Markus Fleschutz 2022-05-02 16:47:17 +02:00
parent 0e4a6036f2
commit 9cd4e7c44e

View File

@ -19,7 +19,7 @@ try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()
"⏳ Step 1/3: Checking requirements... "
& git --version
$null = (git --version)
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
if (-not(Test-Path "$RepoDir" -pathType container)) { throw "Can't access folder: $RepoDir" }
@ -37,7 +37,7 @@ try {
$RepoDirName = (Get-Item "$RepoDir").Name
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ pulled updates for repo 📂$RepoDirName in $Elapsed sec"
"✔️ pulled updates for 📂$RepoDirName repo in $Elapsed sec"
exit 0 # success
} catch {