diff --git a/service.nix b/service.nix index 9ee6914..bdef466 100644 --- a/service.nix +++ b/service.nix @@ -25,13 +25,13 @@ in repo=''${args[0]} target=''${args[1]} - if [ -d "''$target" ]; then - files=($target"/*") + if [ -d "$target" ]; then + files=("$($target)/*") - if [[ ''$(''$files[@]) -gt 0 ]]; then - echo "~ Found Files at ''$target ~" + if [[ $($files[@]) -gt 0 ]]; then + echo "~ Found Files at $target ~" else - echo "~ No Files in ''$target ~" + echo "~ No Files in $target ~" fi fi done < "${config.repo-clone.pkg}"