please 2?
This commit is contained in:
parent
c4a72cbb1a
commit
ac6acea97b
1 changed files with 6 additions and 1 deletions
|
@ -15,15 +15,20 @@ in
|
||||||
let
|
let
|
||||||
execName = service;
|
execName = service;
|
||||||
script = writeShellScriptBin execName ''
|
script = writeShellScriptBin execName ''
|
||||||
|
# Include hidden files when globbing later
|
||||||
|
shopt -s nullglob dotglob
|
||||||
|
|
||||||
while IFS="" read -r p || [ -n "$p" ]
|
while IFS="" read -r p || [ -n "$p" ]
|
||||||
do
|
do
|
||||||
args=($p) # [0]: repo-url [1]: target-path
|
args=($p) # [0]: repo-url [1]: target-path
|
||||||
repo=''${args[0]}
|
repo=''${args[0]}
|
||||||
target=''${args[1]}
|
target=''${args[1]}
|
||||||
|
|
||||||
if [ -d "$target" ]; then
|
if [ -d "''$target" ]; then
|
||||||
if "''$(${pkgs.findutils}/bin/find "''$target" -maxdepth 0 -empty)"; then
|
if "''$(${pkgs.findutils}/bin/find "''$target" -maxdepth 0 -empty)"; then
|
||||||
echo "~ Found Files at ''$target ~"
|
echo "~ Found Files at ''$target ~"
|
||||||
|
else
|
||||||
|
echo "~ No Files in ''$target ~"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done < "${config.repo-clone.pkg}"
|
done < "${config.repo-clone.pkg}"
|
||||||
|
|
Loading…
Reference in a new issue