From d8ccb359feaf611e566cdadefe6256acab19888c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 17 May 2026 10:20:31 +0000 Subject: [PATCH 1/2] Initial plan From c87471580a203869d89e88f40f8dc4502ca554f6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 17 May 2026 10:21:11 +0000 Subject: [PATCH 2/2] Use system temp directory instead of $HOME for temporary font downloads Agent-Logs-Url: https://github.com/PSModule/NerdFonts/sessions/ba986d69-673e-43ba-bb07-cbeab5223dcc Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com> --- src/functions/public/Install-NerdFont.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/public/Install-NerdFont.ps1 b/src/functions/public/Install-NerdFont.ps1 index bece478..41f2967 100644 --- a/src/functions/public/Install-NerdFont.ps1 +++ b/src/functions/public/Install-NerdFont.ps1 @@ -79,7 +79,7 @@ Please run the command again with elevated rights (Run as Administrator) or prov $nerdFontsToInstall = @() $guid = (New-Guid).Guid - $tempPath = Join-Path -Path $HOME -ChildPath "NerdFonts-$guid" + $tempPath = Join-Path -Path ([System.IO.Path]::GetTempPath()) -ChildPath "NerdFonts-$guid" if (-not (Test-Path -Path $tempPath -PathType Container)) { Write-Verbose "Create folder [$tempPath]" $null = New-Item -Path $tempPath -ItemType Directory