1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-11-25 16:47:37 +02:00

Fixes ShellCheck SC2076

This commit is contained in:
Ryan L McIntyre 2018-02-28 21:41:46 -05:00
parent b7e5f8e1ef
commit e8f77401e4

View File

@ -56,7 +56,7 @@ do
for font in "${FONTS[@]}"; do
familyname=$(fc-query --format='%{family}' "${font}")
if [[ ! "${families[*]}" =~ "${familyname}" ]]; then
if [[ ! "${families[*]}" == *"${familyname}"* ]]; then
# family array doesn't contain the font yet
# so let's add it
families+=("$familyname")