mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-25 03:32:02 +02:00
Moved install.ps1 next to install.sh
This commit is contained in:
parent
5e106d5c69
commit
6cb464411c
@ -25,7 +25,7 @@ dynamicparam {
|
||||
$ParamAttribute.ParameterSetName = '__AllParameterSets'
|
||||
$Attributes.Add($ParamAttribute)
|
||||
|
||||
[string[]]$FontNames = Get-ChildItem $PSScriptRoot -Directory -Name
|
||||
[string[]]$FontNames = Join-Path $PSScriptRoot patched-fonts | Get-ChildItem -Directory -Name
|
||||
$Attributes.Add([ValidateSet]::new(($FontNames)))
|
||||
|
||||
$Parameter = [Management.Automation.RuntimeDefinedParameter]::new('FontName', [string[]], $Attributes)
|
||||
@ -41,7 +41,7 @@ end {
|
||||
|
||||
$fontFiles = [Collections.Generic.List[System.IO.FileInfo]]::new()
|
||||
|
||||
Push-Location $PSScriptRoot
|
||||
Join-Path $PSScriptRoot patched-fonts | Push-Location
|
||||
foreach ($aFontName in $FontName) {
|
||||
Get-ChildItem $aFontName -Filter "*.ttf" -Recurse | Foreach-Object {$fontFiles.Add($_)}
|
||||
Get-ChildItem $aFontName -Filter "*.otf" -Recurse | Foreach-Object {$fontFiles.Add($_)}
|
Loading…
x
Reference in New Issue
Block a user