1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:50:06 +08:00

fix(mkfontdir): only check for mkfontdir when OS is not Darwin

This commit is contained in:
mert 2023-01-08 05:06:55 +01:00 committed by GitHub
parent 9e80d9bbfa
commit 14d66bdb96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -353,8 +353,6 @@ download_font () {
# install_fonts {{{
install_fonts () {
need_cmd 'mkfontdir'
need_cmd 'mkfontscale'
if [[ ! -d "$HOME/.local/share/fonts" ]]; then
mkdir -p $HOME/.local/share/fonts
fi
@ -366,6 +364,8 @@ install_fonts () {
fi
cp $HOME/.local/share/fonts/* $HOME/Library/Fonts/
else
need_cmd 'mkfontdir'
need_cmd 'mkfontscale'
fc-cache -fv > /dev/null
mkfontdir "$HOME/.local/share/fonts" > /dev/null
mkfontscale "$HOME/.local/share/fonts" > /dev/null