mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-23 05:01:37 +01:00
Update pull-repo.ps1
This commit is contained in:
parent
971aa8c00f
commit
83b8598bae
@ -1,6 +1,6 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Pulls Git repository updates
|
Pulls updates for a Git repo
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This PowerShell script pulls updates for a local Git repository (including submodules).
|
This PowerShell script pulls updates for a local Git repository (including submodules).
|
||||||
.PARAMETER RepoDir
|
.PARAMETER RepoDir
|
||||||
@ -37,7 +37,7 @@ try {
|
|||||||
|
|
||||||
$RepoDirName = (Get-Item "$RepoDir").Name
|
$RepoDirName = (Get-Item "$RepoDir").Name
|
||||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||||
"✔️ pulled updates for Git repository 📂$RepoDirName in $Elapsed sec"
|
"✔️ pulled updates for repo 📂$RepoDirName in $Elapsed sec"
|
||||||
|
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
Reference in New Issue
Block a user