Browse Source

Do not check $#

If no argument is given then `"$1"` is an empty string, so no need to bother.
pull/191/merge
ZyX 7 years ago
parent
commit
91aae1698a
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      install.sh

+ 1
- 4
install.sh View File

@ -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…
Cancel
Save