diff --git a/service.nix b/service.nix index 7049d5d..3474cc6 100644 --- a/service.nix +++ b/service.nix @@ -26,7 +26,7 @@ in target=''${args[1]} if [ -d "$target" ]; then - if [[ $(${pkgs.findutils}/bin/find "$target" -maxdepth 0 -empty) -gt 0 ]]; then + if ${pkgs.findutils}/bin/find "$target" -maxdepth 0 -empty | read v; then echo "~ No Files in $target ~" else echo "~ Found Files at $target ~"