use find to find all mize_module.nix files in a repo

This commit is contained in:
Sebastian Moser
2024-10-10 18:39:02 +02:00
parent 46c5fb8505
commit 36088da4f5

View File

@@ -23,8 +23,8 @@ rec {
mkdir -p $out mkdir -p $out
touch $out/modules_to_build touch $out/modules_to_build
for d in ${path}/modules/*; do find . -not -type d -name mize_module.nix | while read p
[[ -f $d/mize_module.nix ]] && (echo "$d/mize_module.nix" >> $out/modules_to_build; echo found module $d/mize_module.nix) (echo "$d/mize_module.nix" >> $out/modules_to_build; echo found module $d/mize_module.nix)
done done
exit 0 exit 0