From 6abd4e0607f470743604dd576fb6f78ede5a695f Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Thu, 1 Aug 2024 03:38:35 -0700 Subject: [PATCH] search target dir --- service.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service.nix b/service.nix index 9439662..7049d5d 100644 --- a/service.nix +++ b/service.nix @@ -26,7 +26,7 @@ in target=''${args[1]} if [ -d "$target" ]; then - if [[ $(${pkgs.findutils}/bin/find /some/dir/ -maxdepth 0 -empty) -gt 0 ]]; then + if [[ $(${pkgs.findutils}/bin/find "$target" -maxdepth 0 -empty) -gt 0 ]]; then echo "~ No Files in $target ~" else echo "~ Found Files at $target ~"