浏览代码

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 年前
提交者 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

正在加载...
取消
保存