Преглед на файлове

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 години
committed by GitHub
родител
ревизия
ab74855944
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      install.sh

+ 1
- 1
install.sh Целия файл

@ -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

Зареждане…
Отказ
Запис