Use pathExists instead of readDir

This commit is contained in:
Kiana Sheibani 2024-02-09 22:44:02 -05:00
parent 12733ba5c6
commit 51a6ae01e1
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -13,7 +13,7 @@
inherit (pkgs) lib;
# 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
currentDir = builtins.readDir ./.;