From ffbf86903d8954c2f21012c65ef034190351d879 Mon Sep 17 00:00:00 2001 From: romkatv Date: Wed, 26 Feb 2020 15:49:03 +0100 Subject: [PATCH] try to fix font instllation problems on mac --- internal/wizard.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/wizard.zsh b/internal/wizard.zsh index beaa4bb4..a0b864af 100755 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -322,7 +322,8 @@ function install_font() { for style in Regular Bold Italic 'Bold Italic'; do local file="MesloLGS NF ${style}.ttf" run_command "Downloading %B$file%b" \ - curl -fsSL -o ~/Library/Fonts/$file "$font_base_url/${file// /%20}" + curl -fsSL -o ~/Library/Fonts/$file.tmp "$font_base_url/${file// /%20}" + zf_mv -f -- ~/Library/Fonts/$file{.tmp,} || quit -c done print -nP -- "Changing %BiTerm2%b settings ..." local k t v settings=(