From 6cb464411c0e67296466bb5656f0843cbe46b7ed Mon Sep 17 00:00:00 2001 From: Freddie Sackur Date: Wed, 27 Jan 2021 00:18:25 +0000 Subject: [PATCH] Moved install.ps1 next to install.sh --- patched-fonts/install.ps1 => install.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename patched-fonts/install.ps1 => install.ps1 (92%) diff --git a/patched-fonts/install.ps1 b/install.ps1 similarity index 92% rename from patched-fonts/install.ps1 rename to install.ps1 index 7ba2f3b18..cbff408e1 100644 --- a/patched-fonts/install.ps1 +++ b/install.ps1 @@ -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($_)}