openmoji: fix array shell variable, don't only process the first code :)

This commit is contained in:
Will Dietz 2019-10-02 06:33:31 -05:00 committed by Francesco Gazzetta
parent 4a377fd617
commit 68cbdf8fe5

View File

@ -47,9 +47,9 @@ in stdenv.mkDerivation rec {
cp "./black/svg/$filename" "./font/tmp-black/$filename"
done
hexcodes=($(uniq<<<"$hexcodes"))
hexcodes=($(uniq<<<"''${hexcodes[@]}"))
for h in $hexcodes; do
for h in ''${hexcodes[@]}; do
filename="$h.svg"
if [ ! -e "./color/svg/$filename" ]; then
echo "$h is missing -> substitute with \"Missing Glyph\": $filename"