Use pathExists
instead of readDir
This commit is contained in:
parent
12733ba5c6
commit
51a6ae01e1
|
@ -13,7 +13,7 @@
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
|
|
||||||
# Check if project has a shell.nix
|
# Check if project has a shell.nix
|
||||||
hasShell = dir: (builtins.readDir ./${dir}) ? "shell.nix";
|
hasShell = dir: builtins.pathExists ./${dir}/shell.nix;
|
||||||
|
|
||||||
# Get all project directories
|
# Get all project directories
|
||||||
currentDir = builtins.readDir ./.;
|
currentDir = builtins.readDir ./.;
|
||||||
|
|
Loading…
Reference in a new issue