summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-02-26 17:49:03 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-02-26 17:49:03 +0300
commitffbf86903d8954c2f21012c65ef034190351d879 (patch)
treea737a902ec2a756ce095460cb4b2dd2831325978
parentff496ab2ba11a33da807461c64a8f7befc381e56 (diff)
try to fix font instllation problems on mac
-rwxr-xr-xinternal/wizard.zsh3
1 files changed, 2 insertions, 1 deletions
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=(