summaryrefslogtreecommitdiffstats
path: root/lib/populate.jq
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-10-23 23:28:20 +0200
committertv <tv@krebsco.de>2016-10-23 23:28:20 +0200
commitdc91b856a83a9401741847a93d48b37f1ea05867 (patch)
tree4fc353576d943cb16c9545c93021880881c7a529 /lib/populate.jq
parent136398190996cfd7b65be5eb283a19f1bcc1de92 (diff)
file: support exclude patternsv1.2.0cd/master
Diffstat (limited to 'lib/populate.jq')
-rw-r--r--lib/populate.jq2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/populate.jq b/lib/populate.jq
index e7e02d3..c51e44e 100644
--- a/lib/populate.jq
+++ b/lib/populate.jq
@@ -90,6 +90,8 @@ def rsync_script:
@sh " -vFrlptD \\",
@sh " --delete-excluded \\",
@sh " -f \("P /*", ($rsync_sources[] | "R /\(.key)")) \\",
+ ($file_sources[] | .key as $key | .value.file.exclude | select(. != null)[] |
+ @sh " -f \("- /\($key)/\(.)") \\"),
@sh " \"$srcdir\"/ \\",
(if $is_local then
@sh " \($target.path)"