mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-19 09:51:48 +02:00
install.sh: Fix installing more than 2 fonts
[why] The implode function can not work correctly because the bash pattern expansion inserts blanks in unexpected places. [how] Use a dump loop instead of being smart. Fixes: #280 Reported-by: Geoffrey Biggs <gbiggs> Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
a046d98349
commit
0a7d64b31c
1 changed files with 5 additions and 1 deletions
|
@ -138,7 +138,11 @@ implode() {
|
||||||
# $3... are the elements to join
|
# $3... are the elements to join
|
||||||
local retname=$1 sep=$2 ret=$3
|
local retname=$1 sep=$2 ret=$3
|
||||||
shift 3 || shift $(($#))
|
shift 3 || shift $(($#))
|
||||||
printf -v "$retname" "%s" "$ret${*/#/$sep}"
|
while [ $# -gt 0 ]; do
|
||||||
|
ret=$ret$sep$1
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
printf -v "$retname" "%s" "$ret"
|
||||||
}
|
}
|
||||||
find_include=
|
find_include=
|
||||||
find_exclude=
|
find_exclude=
|
||||||
|
|
Loading…
Reference in a new issue