From 9cd4e7c44e83918e1fbeb6422ad0942a62fca203 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 2 May 2022 16:47:17 +0200 Subject: [PATCH] Update pull-repo.ps1 --- Scripts/pull-repo.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/pull-repo.ps1 b/Scripts/pull-repo.ps1 index 3611ff36..b64fbb8f 100755 --- a/Scripts/pull-repo.ps1 +++ b/Scripts/pull-repo.ps1 @@ -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 {