pkgs/top-level/metrics.nix: use -print0 to insulate us from spaces in find

This commit is contained in:
Philip Taron
2025-09-16 05:48:31 -07:00
parent 32c68bb46e
commit 79feab6cff
+1 -1
View File
@@ -97,7 +97,7 @@ stdenvNoCC.mkDerivation {
numBroken="$((num - $qaCountDrv))"
echo "nix-env.qaCountBroken $numBroken" >> hydra-metrics
lines="$(find "$nixpkgs" -name "*.nix" -type f | xargs cat | wc -l)"
lines="$(find "$nixpkgs" -name "*.nix" -type f -print0 | xargs -0 cat | wc -l)"
echo "loc $lines" >> hydra-metrics
runHook postBuild