setup.sh: avoid subshells: iterating a file

This commit is contained in:
Albert Safin 2019-09-19 15:43:35 +00:00
parent cf4e4820f6
commit 42482a1d60

@ -449,7 +449,8 @@ findInputs() {
[[ -f "$pkg/nix-support/$file" ]] || continue
local pkgNext
for pkgNext in $(< "$pkg/nix-support/$file"); do
read -r -d '' pkgNext < "$pkg/nix-support/$file" || true
for pkgNext in $pkgNext; do
findInputs "$pkgNext" "$hostOffsetNext" "$targetOffsetNext"
done
done