Skip to content

Commit

Permalink
fix package url
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mnich committed May 14, 2024
1 parent 588a8bd commit 884650e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/Test-Manifest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ Param(
[Parameter(HelpMessage = 'Additional options for WinGet')]
[string] $WinGetOptions
)

#$Manifest = ".\GitButler\0.11.2\"
$ManifestURL = $ManifestURL.TrimEnd('/')
$SplittedURL = $ManifestURL -split '/'
#$version = $SplittedURL[-1]
$package = $SplittedURL[-2]
$package = "$($SplittedURL[-2]).$($SplittedURL[-3])"
#download installer
$Manifest = New-Item -ItemType Directory -Path (Join-Path -Path ([System.IO.Path]::GetTempPath()) -ChildPath 'ManifestDownload')
Invoke-WebRequest -Uri "$ManifestURL\$package.yaml" -OutFile "$Manifest\$package.yaml"
Expand Down

0 comments on commit 884650e

Please sign in to comment.