lol

newlib-nano: Fix build

The original check, while terse, causes the shell to exit after the
`for` loop if any file is non-existent.

+5 -1
+5 -1
pkgs/development/misc/newlib/default.nix
··· 118 118 for f in librdimon.a libc.a libm.a libg.a libgloss.a; do 119 119 # Some libraries are only available for specific architectures. 120 120 # For example, librdimon.a is only available on ARM. 121 - [ -f "$f" ] && cp "$f" "''${f%%\.a}_nano.a" 121 + if [ -f "$f" ]; then 122 + dst="''${f%%\.a}_nano.a" 123 + >&2 echo "$f -> $dst" 124 + cp "$f" "$dst" 125 + fi 122 126 done 123 127 ) 124 128 ''