Skip to content

Commit c874715

Browse files
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>
1 parent d8ccb35 commit c874715

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/functions/public/Install-NerdFont.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Please run the command again with elevated rights (Run as Administrator) or prov
7979
$nerdFontsToInstall = @()
8080

8181
$guid = (New-Guid).Guid
82-
$tempPath = Join-Path -Path $HOME -ChildPath "NerdFonts-$guid"
82+
$tempPath = Join-Path -Path ([System.IO.Path]::GetTempPath()) -ChildPath "NerdFonts-$guid"
8383
if (-not (Test-Path -Path $tempPath -PathType Container)) {
8484
Write-Verbose "Create folder [$tempPath]"
8585
$null = New-Item -Path $tempPath -ItemType Directory

0 commit comments

Comments
 (0)