From be85cdacfd43b92aee2260698c7ca74808e336d8 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sat, 28 May 2011 20:08:49 +0000 Subject: [PATCH] Fix space-containing name processing svn path=/nixos/trunk/; revision=27313 --- modules/config/fonts.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/config/fonts.nix b/modules/config/fonts.nix index 865d682cface..af5ebde2d477 100644 --- a/modules/config/fonts.nix +++ b/modules/config/fonts.nix @@ -123,10 +123,10 @@ let fontDirs=\"\$fontDirs \$(dirname \$i)\"; done; mkdir -p \$out/share/X11-fonts/; - for i in \$(find \$fontDirs -type f -o -type l); do - j=\${i##*/} - if ! test -e \$out/share/X11-fonts/\${j}; then - ln -s \$i \$out/share/X11-fonts/\${j}; + find \$fontDirs -type f -o -type l | while read i; do + j=\"\${i##*/}\" + if ! test -e \"\$out/share/X11-fonts/\${j}\"; then + ln -s \"\$i\" \"\$out/share/X11-fonts/\${j}\"; fi; done; cd \$out/share/X11-fonts/