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:
parent
5d5c1b449e
commit
7a4b5f872f
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user