mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-31 12:27:22 +02:00
Use first arguments as wrapping value.
- Resistant to bad inputs. - First checks if argument is a number and then checks if its greater than 2, if it's, the `wrapAt` variable is updated.
This commit is contained in:
parent
89dc2f8de7
commit
75960ab56d
@ -23,6 +23,7 @@ function print-decimal-unicode-range() {
|
|||||||
local allChars=""
|
local allChars=""
|
||||||
local allCodes=""
|
local allCodes=""
|
||||||
local wrapAt=16
|
local wrapAt=16
|
||||||
|
[[ "$wrappingValue" =~ ^[0-9]+$ ]] && [ "$wrappingValue" -gt 2 ] && wrapAt="$wrappingValue"
|
||||||
local topLineStart="${bgColorBorder}╔═══"
|
local topLineStart="${bgColorBorder}╔═══"
|
||||||
local topLineMiddle="═══╦═══"
|
local topLineMiddle="═══╦═══"
|
||||||
local topLineEnd="═══╗${reset_color}"
|
local topLineEnd="═══╗${reset_color}"
|
||||||
@ -182,4 +183,6 @@ function test-fonts() {
|
|||||||
echo; echo
|
echo; echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wrappingValue="$1"
|
||||||
|
|
||||||
test-fonts
|
test-fonts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user