Skip to content

Commit

Permalink
Merge pull request powerline#89 from sbusch/master
Browse files Browse the repository at this point in the history
Allow spaces in powerline fonts source dir
  • Loading branch information
Lokaltog committed Dec 7, 2014
2 parents 6d43495 + 1614e26 commit af69d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# 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"
find_command="find \"$powerline_fonts_dir\" \( -name '*.[o,t]tf' -or -name '*.pcf.gz' \) -type f -print0"

if [[ `uname` == 'Darwin' ]]; then
# MacOS
Expand All @@ -15,7 +15,7 @@ else
fi

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

# Reset font cache on Linux
if [[ -n `which fc-cache` ]]; then
Expand Down

0 comments on commit af69d53

Please sign in to comment.