Skip to content

Commit

Permalink
only try fc-cache reset on linux
Browse files Browse the repository at this point in the history
fc-cache doesn't exist on osx :)
  • Loading branch information
CarlQLange committed Sep 4, 2015
1 parent 4151af0 commit 5e47bb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 5e47bb2

Please sign in to comment.