diff --git a/service.nix b/service.nix index d090377..6d1343c 100644 --- a/service.nix +++ b/service.nix @@ -17,9 +17,17 @@ in script = writeShellScriptBin execName '' while IFS="" read -r p || [ -n "$p" ] do - args=($p) - echo ''${args[0]} - echo ''${args[1]} + args=($p) # [0]: repo-url [1]: target-path + repo=''${args[0]} + target=''${args[1]} + + if [ -d "$target" ]; then + if "''$(${pkgs.findutils}/bin/find "''$target" -maxdepth 0 -empty)"; then + echo "~ Found Files at ''$target ~" + else + echo "~ No Files in ''$target ~" + fi + fi done < "${config.repo-clone.pkg}" ''; in