Skip to content

Commit

Permalink
Added helper script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvenga committed Jun 6, 2024
1 parent 415e813 commit b88b990
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions update-submodules.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/pwsh

param (
[Parameter(Mandatory = $true)]
[string]
$Version
)

$root = $PSScriptRoot
$jellyfinApiModulePath = "$root/src/jellyfin/jellyfin" | Resolve-Path
$jellyfinWebModulePath = "$root/src/jellyfin-web/jellyfin-web" | Resolve-Path

Write-Host "Updating sub-modules to '$Version'."

try
{
Push-Location $jellyfinApiModulePath
git fetch --all
git checkout $Version
}
finally
{
Pop-Location
}

try
{
Push-Location $jellyfinWebModulePath
git fetch --all
git checkout $Version
}
finally
{
Pop-Location
}

Write-Host "Done!"

0 comments on commit b88b990

Please sign in to comment.