mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-06 21:49:40 +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() {
|
function print-unicode-ranges() {
|
||||||
echo ''
|
echo ''
|
||||||
|
|
||||||
local arr=($@)
|
local arr=("$@")
|
||||||
local len=$#
|
local len=$#
|
||||||
local combinedRanges=()
|
local combinedRanges=()
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ function print-unicode-ranges() {
|
|||||||
local startDecimal=$((16#$start))
|
local startDecimal=$((16#$start))
|
||||||
local endDecimal=$((16#$end))
|
local endDecimal=$((16#$end))
|
||||||
|
|
||||||
combinedRanges+=($(seq "${startDecimal}" "${endDecimal}"))
|
mapfile -t combinedRanges < <(seq "$startDecimal" "$endDecimal")
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -287,7 +287,7 @@ case $mode in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Reset font cache on Linux
|
# 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" = false ] && fc-cache -vf "$font_dir"
|
||||||
[ "$quiet" = true ] && fc-cache -f "$font_dir"
|
[ "$quiet" = true ] && fc-cache -f "$font_dir"
|
||||||
case $? in
|
case $? in
|
||||||
|
Loading…
Reference in New Issue
Block a user