nerd-fonts/chocolatey/tools/chocolateybeforemodify.ps1

12 lines
295 B
PowerShell
Raw Normal View History

2018-04-15 17:42:29 +02:00
# Removing fonts
function Get-CurrentDirectory
{{
$thisName = $MyInvocation.MyCommand.Name
[IO.Path]::GetDirectoryName((Get-Content function:$thisName).File)
}}
$RemoveFont = Join-Path (Get-CurrentDirectory) "Remove-Font.ps1"
foreach ($font in ({fonts})) {{
& "$RemoveFont" "$font"
}}