Skip to content

Commit

Permalink
fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
jpawlowski committed Aug 27, 2024
1 parent 6a1e57f commit b4d29c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/powershell-extended/Install-NerdFont.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ begin {
Write-Host -NoNewline -ForegroundColor DarkYellow $numberText
Write-Host -NoNewline -ForegroundColor Yellow ': '
if ($fontName -match '^(.+)(Font Family)(.*)$') {
if ($IsCoreCLR -and -not [string]::IsNullOrEmpty($Options[$index].linkPreviewFont)) {
if ($IsCoreCLR -and $Options[$index].linkPreviewFont -is [string] -and -not [string]::IsNullOrEmpty($Options[$index].linkPreviewFont)) {
$link = $Options[$index].linkPreviewFont
if ($link -notmatch '^https?://') {
$link = "https://www.programmingfonts.org/#$link"
Expand All @@ -511,7 +511,7 @@ begin {
}
}
else {
if ($IsCoreCLR -and -not [string]::IsNullOrEmpty($Options[$index].linkPreviewFont)) {
if ($IsCoreCLR -and $Options[$index].linkPreviewFont -is [string] -and -not [string]::IsNullOrEmpty($Options[$index].linkPreviewFont)) {
$link = $Options[$index].linkPreviewFont
if ($link -notmatch '^https?://') {
$link = "https://www.programmingfonts.org/#$link"
Expand Down

0 comments on commit b4d29c0

Please sign in to comment.