diff --git a/service.nix b/service.nix index 480c5ca..e8a05ec 100644 --- a/service.nix +++ b/service.nix @@ -25,7 +25,9 @@ in target=''${args[1]} if [ -d "''$target" ]; then - if ${pkgs.findutils}/bin/find "''$target" -maxdepth 0 -empty; then + files=(''$target"/*") + + if [ ''$(''$files[@]) -gt 0 ]; then echo "~ Found Files at ''$target ~" else echo "~ No Files in ''$target ~"