mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-19 03:12:07 +02:00
gotta-patch-em: Require Bash version 4+
[why] Native MacOS has only an ancient Bash 3.x But we use arrays... and rewriting only to support 15 year old shells? [how] Check the Major Bash version number and bail out if too old. Fixes: #1505 Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
2474739437
commit
e17bb46910
@ -10,6 +10,13 @@
|
||||
|
||||
LINE_PREFIX="# [Nerd Fonts] "
|
||||
|
||||
test "${BASH_VERSION%%[^0-9]*}" -ge 4 || {
|
||||
echo >&2 "$LINE_PREFIX A non-ancient version of Bash is needed (>= 4)"
|
||||
echo >&2 "# Bash version 4 has been released in 2009, so it's about time to update"
|
||||
echo >&2 "# (Most likely you are on MacOS; try Homebrew with \`brew install bash\`) ;-)"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Check for Fontforge
|
||||
type fontforge >/dev/null 2>&1 || {
|
||||
echo >&2 "$LINE_PREFIX FontForge must be installed before running this script."
|
||||
|
Loading…
x
Reference in New Issue
Block a user