1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-19 20:12:52 +02:00

Fixes build errors (ShellCheck)

This commit is contained in:
Ryan L McIntyre 2019-08-11 07:30:38 -07:00
parent 5d5c1b449e
commit 7a4b5f872f
2 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@ function print-decimal-unicode-range() {
function print-unicode-ranges() {
echo ''
local arr=($@)
local arr=("$@")
local len=$#
local combinedRanges=()
@ -99,7 +99,7 @@ function print-unicode-ranges() {
local startDecimal=$((16#$start))
local endDecimal=$((16#$end))
combinedRanges+=($(seq "${startDecimal}" "${endDecimal}"))
mapfile -t combinedRanges < <(seq "$startDecimal" "$endDecimal")
done

View File

@ -287,7 +287,7 @@ case $mode in
esac
# Reset font cache on Linux
if [[ -n $(which fc-cache) ]]; then
if [[ -n $(command -v fc-cache) ]]; then
[ "$quiet" = false ] && fc-cache -vf "$font_dir"
[ "$quiet" = true ] && fc-cache -f "$font_dir"
case $? in