mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-25 10:51:46 +00:00
bugfix: removed hardwired path in function
This commit is contained in:
parent
e1029ae1cd
commit
d79c3bf43f
@ -63,7 +63,7 @@ Write-Host "============================================" -ForegroundColor DarkG
|
||||
# Installing Nerd Fonts
|
||||
Write-Host "Installing Nerd Fonts..." -ForegroundColor Cyan
|
||||
ProcessUrlFiles -source "$dotfilesRepo\nerd-fonts" -fileExt ".zip" -progress $false
|
||||
UnzipAndInstall -source "$dotfilesRepo\nerd-fonts"
|
||||
UnzipAndInstall -source "$dotfilesRepo\nerd-fonts" -destination "$env:LOCALAPPDATA\Microsoft\Windows\Fonts\"
|
||||
|
||||
# Final message
|
||||
Write-Host "Windows setup complete!" -ForegroundColor Green
|
||||
|
@ -165,7 +165,8 @@ function ProcessUrlFiles
|
||||
function UnzipAndInstall
|
||||
{
|
||||
param (
|
||||
[string]$source
|
||||
[string]$source,
|
||||
[string]$destination
|
||||
)
|
||||
|
||||
# Create temporary directory for unzip
|
||||
@ -175,7 +176,6 @@ function UnzipAndInstall
|
||||
{ New-Item -ItemType Directory -Path $tmpApp | Out-Null
|
||||
}
|
||||
|
||||
$destination = "$env:LOCALAPPDATA\Microsoft\Windows\Fonts\"
|
||||
if (-not (Test-Path $destination))
|
||||
{ New-Item -ItemType Directory -Path $destination | Out-Null
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user