瀏覽代碼

only try fc-cache reset on linux

fc-cache doesn't exist on osx :)
pull/134/head
Carl Lange 9 年之前
父節點
當前提交
5e47bb2113
共有 1 個檔案被更改,包括 4 行新增2 行删除
  1. +4
    -2
      install.sh

+ 4
- 2
install.sh 查看文件

@ -18,8 +18,10 @@ fi
eval $find_command | xargs -0 -I % cp "%" "$font_dir/"
# Reset font cache on Linux
if [[ -n `which fc-cache` ]]; then
fc-cache -f $font_dir
if [[ `uname` != 'Darwin' ]]; then
if [[ -n `which fc-cache` ]]; then
fc-cache -f $font_dir
fi
fi
echo "All Powerline fonts installed to $font_dir"

Loading…
取消
儲存