瀏覽代碼

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"

Loading…
取消
儲存