diff --git a/service.nix b/service.nix index e83046b..036ab0d 100644 --- a/service.nix +++ b/service.nix @@ -26,9 +26,9 @@ in target=''${args[1]} if [ -d "$target" ]; then - files=("$target/*") + files=(''${target}/*) - if [[ $($files[@]) -gt 0 ]]; then + if [[ $(#$files[@]) -gt 0 ]]; then echo "~ Found Files at $target ~" else echo "~ No Files in $target ~"