From 1614e260a7c180ef9fe4b5a2f0057ad87abc2b7c Mon Sep 17 00:00:00 2001 From: Sebastian Busch Date: Fri, 28 Nov 2014 21:17:41 +0100 Subject: [PATCH] allow spaces in powerline fonts dir name --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index e5ecbc0..a18a7fc 100755 --- a/install.sh +++ b/install.sh @@ -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 @@ -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