From b4358b80d203d961f0178cb0f49741395b7180d6 Mon Sep 17 00:00:00 2001 From: Paul Milla <68879922+PMilla-MS@users.noreply.github.com> Date: Mon, 14 Jun 2021 11:09:00 -0700 Subject: [PATCH] Fix breaking newline New line causes the command to throw an exception instead of correctly installing font --- nerdfont/install.ps1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nerdfont/install.ps1 b/nerdfont/install.ps1 index cd6aa45..398dafd 100644 --- a/nerdfont/install.ps1 +++ b/nerdfont/install.ps1 @@ -6,9 +6,7 @@ $my_fontdir = "$Env:UserProfile\AppData\Local\Microsoft\Windows\Fonts" New-Item -Path "$my_fontdir" -ItemType Directory -Force | out-null IF (!(Test-Path -Path "$my_fontdir\$my_nerdfont_otf")) { - - & curl.exe -fsSLo "$my_nerdfont_otf" 'https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/DroidSansMono/complete -/Droid%20Sans%20Mono%20Nerd%20Font%20Complete%20Windows%20Compatible.otf' + & curl.exe -fsSLo "$my_nerdfont_otf" 'https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/DroidSansMono/complete/Droid%20Sans%20Mono%20Nerd%20Font%20Complete%20Windows%20Compatible.otf' & move "$my_nerdfont_otf" "$my_fontdir" } -- 2.25.1