Skip to content

Commit 0a7d64b

Browse files
committed
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 <[email protected]>
1 parent a046d98 commit 0a7d64b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

install.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ implode() {
138138
# $3... are the elements to join
139139
local retname=$1 sep=$2 ret=$3
140140
shift 3 || shift $(($#))
141-
printf -v "$retname" "%s" "$ret${*/#/$sep}"
141+
while [ $# -gt 0 ]; do
142+
ret=$ret$sep$1
143+
shift
144+
done
145+
printf -v "$retname" "%s" "$ret"
142146
}
143147
find_include=
144148
find_exclude=

0 commit comments

Comments
 (0)