Browse Source

Update install.sh to help OpenBSD users

This fixes the following error received on OpenBSD when running `install.sh`.

```
$ sh install.sh
Copying fonts...
cp: cannot stat '%': No such file or directory
All Powerline fonts installed to /home/foo/.local/share/fonts
```

What's happening is that OpenBSD's `xargs` fails without the `-n1` option (i.e. copy the files one-at-a-time).

Adding the `-n1` seems to be compatible with Linux (I tried it on a CentOS system); probably holds for Mac OS X too (but I don't have one to test on).
pull/202/head
Rick Hanson 7 years ago
committed by GitHub
parent
commit
ab74855944
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      install.sh

+ 1
- 1
install.sh View File

@ -16,7 +16,7 @@ fi
# Copy all fonts to user fonts directory
echo "Copying fonts..."
eval $find_command | xargs -0 -I % cp "%" "$font_dir/"
eval $find_command | xargs -0 -n1 -I % cp "%" "$font_dir/"
# Reset font cache on Linux
if command -v fc-cache @>/dev/null ; then

Loading…
Cancel
Save