Skip to content

Commit 6ac4c01

Browse files
committed
Merge pull request #134 from CarlQLange/patch-1
only try fc-cache reset on linux
2 parents 077977c + ff1bbd2 commit 6ac4c01

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

install.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ else
1515
fi
1616

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

2021
# Reset font cache on Linux
21-
if [[ -n `which fc-cache` ]]; then
22-
fc-cache -f $font_dir
22+
if command -v fc-cache @>/dev/null ; then
23+
echo "Resetting font cache, this may take a moment..."
24+
fc-cache -f $font_dir
2325
fi
2426

2527
echo "All Powerline fonts installed to $font_dir"

0 commit comments

Comments
 (0)