Skip to content

Commit

Permalink
fixed the fc-cache check
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlQLange committed Nov 18, 2015
1 parent 5e47bb2 commit ff1bbd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ else
fi

# Copy all fonts to user fonts directory
echo "Copying fonts..."
eval $find_command | xargs -0 -I % cp "%" "$font_dir/"

# Reset font cache on Linux
if [[ `uname` != 'Darwin' ]]; then
if [[ -n `which fc-cache` ]]; then
if command -v fc-cache @>/dev/null ; then
echo "Resetting font cache, this may take a moment..."
fc-cache -f $font_dir
fi
fi

echo "All Powerline fonts installed to $font_dir"

0 comments on commit ff1bbd2

Please sign in to comment.