From 49a85bfa39ff11d9bb186bd7eaf0a0eb38838b4c Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Sun, 27 Jul 2025 19:11:42 +0200 Subject: [PATCH] Updated sync-repo.ps1 --- scripts/sync-repo.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/sync-repo.ps1 b/scripts/sync-repo.ps1 index 84497fdf..bc76cb06 100755 --- a/scripts/sync-repo.ps1 +++ b/scripts/sync-repo.ps1 @@ -4,14 +4,14 @@ .DESCRIPTION This PowerShell script synchronizes a local Git repository by pull and push (including submodules). .PARAMETER path - Specifies the path to the Git repository (current working directory by default) + Specifies the file path to the Git repository (current working directory by default) .EXAMPLE PS> ./sync-repo.ps1 C:\Repos\curl ⏳ (1/4) Searching for Git executable... git version 2.42.0.windows.1 ⏳ (2/4) Checking local repository... C:\Repos\curl ⏳ (3/4) Pulling remote updates... Already up to date. ⏳ (4/4) Pushing local updates... Everything up-to-date - ✅ Synced the 📂curl repo in 5s. + ✅ Repo 'curl' synchronized in 5s. .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -40,9 +40,9 @@ try { $pathName = (Get-Item "$path").Name [int]$elapsed = $stopWatch.Elapsed.TotalSeconds - "✅ Synced the 📂$pathName repo in $($elapsed)s." + "✅ Repo '$pathName' synchronized in $($elapsed)s." exit 0 # success } catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + "⚠️ ERROR: $($Error[0]) in script line $($_.InvocationInfo.ScriptLineNumber)." exit 1 }