浏览代码

Do not check $#

If no argument is given then `"$1"` is an empty string, so no need to bother.
pull/191/merge
ZyX 7 年前
父节点
当前提交
91aae1698a
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. +1
    -4
      install.sh

+ 1
- 4
install.sh 查看文件

@ -4,10 +4,7 @@
powerline_fonts_dir=$( cd "$( dirname "$0" )" && pwd )
# if an argument is given it is used to select wich fonts to install
prefix=''
if [ $# = 1 ]; then
prefix=$1
fi
prefix="$1"
find_command="find \"$powerline_fonts_dir\" \( -name '$prefix*.[o,t]tf' -or -name '$prefix*.pcf.gz' \) -type f -print0"

正在加载...
取消
保存