From 68cbdf8fe5d9ec15ae569b17f7dd7e33f7b496bb Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Wed, 2 Oct 2019 06:33:31 -0500 Subject: [PATCH] openmoji: fix array shell variable, don't only process the first code :) --- pkgs/data/fonts/openmoji/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/data/fonts/openmoji/default.nix b/pkgs/data/fonts/openmoji/default.nix index 0e6843c07451..36cb0b1ee245 100644 --- a/pkgs/data/fonts/openmoji/default.nix +++ b/pkgs/data/fonts/openmoji/default.nix @@ -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"