From 295ea1158641664a120291c31d75cdfc9b0d199b Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Thu, 1 Aug 2024 03:43:17 -0700 Subject: [PATCH] trying read again --- service.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ~"