Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Apr 6, 2024
1 parent 9c459e0 commit d661eb5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/private/common.ps1
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
$script:NerdFontsReleaseURL = 'https://api.github.com/repos/ryanoasis/nerd-fonts/releases'
$script:ArchiveExtension = '.tar.xz'
2 changes: 1 addition & 1 deletion src/public/Get-NerdFont.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$version = $release.tag_name
Write-Verbose "Latest release: $version"
Write-Verbose "Selecting assets by name: '$Name'"
$release.assets.browser_download_url | Where-Object { $_ -like '*.tar.xz' } | ForEach-Object {
$release.assets.browser_download_url | Where-Object { $_ -like "*$script:ArchiveExtension" } | ForEach-Object {
[pscustomobject]@{
Name = $_.Split('/')[-1].Split('.')[0]
Version = $version
Expand Down
2 changes: 1 addition & 1 deletion src/public/Install-NerdFont.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Please run the command again with elevated rights (Run as Administrator) or prov
foreach ($NerdFont in $NerdFontsToInstall) {
$URL = $NerdFont.URL
$FontName = $NerdFont.Name
$downloadPath = Join-Path -Path $tempPath -ChildPath "$FontName.zip"
$downloadPath = Join-Path -Path $tempPath -ChildPath "$FontName$script:ArchiveExtension"
$extractPath = Join-Path -Path $tempPath -ChildPath "$FontName"

Write-Verbose "[$FontName] - Downloading to [$downloadPath]"
Expand Down

0 comments on commit d661eb5

Please sign in to comment.