diff --git a/install.sh b/install.sh index 97270ae..e5ecbc0 100755 --- a/install.sh +++ b/install.sh @@ -3,6 +3,8 @@ # Set source and target directories powerline_fonts_dir=$( cd "$( dirname "$0" )" && pwd ) +find_command="find $powerline_fonts_dir \( -name '*.[o,t]tf' -or -name '*.pcf.gz' \) -type f -print0" + if [[ `uname` == 'Darwin' ]]; then # MacOS font_dir="$HOME/Library/Fonts" @@ -13,7 +15,6 @@ else fi # Copy all fonts to user fonts directory -find_command="find $powerline_fonts_dir -name '*.[o,t]tf' -o -name '*.pcf.gz' -type f -print0" eval $find_command | xargs -0 -I % cp % $font_dir/ # Reset font cache on Linux