diff --git a/bin/scripts/test-fonts.sh b/bin/scripts/test-fonts.sh index 8ec37547a..3c45fe3a1 100755 --- a/bin/scripts/test-fonts.sh +++ b/bin/scripts/test-fonts.sh @@ -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 diff --git a/install.sh b/install.sh index 5948791ca..1f9dac932 100755 --- a/install.sh +++ b/install.sh @@ -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