testing files
parent
e17921e9fb
commit
e669b42cef
14
service.nix
14
service.nix
|
@ -17,9 +17,17 @@ in
|
||||||
script = writeShellScriptBin execName ''
|
script = writeShellScriptBin execName ''
|
||||||
while IFS="" read -r p || [ -n "$p" ]
|
while IFS="" read -r p || [ -n "$p" ]
|
||||||
do
|
do
|
||||||
args=($p)
|
args=($p) # [0]: repo-url [1]: target-path
|
||||||
echo ''${args[0]}
|
repo=''${args[0]}
|
||||||
echo ''${args[1]}
|
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}"
|
done < "${config.repo-clone.pkg}"
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in New Issue