summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/populate.jq7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/populate.jq b/lib/populate.jq
index c51e44e..911e956 100644
--- a/lib/populate.jq
+++ b/lib/populate.jq
@@ -36,6 +36,11 @@ def checktarget_script:
@sh "fi";
+def forcetarget_script:
+ @sh "mkdir -vp \($target.path)",
+ @sh "touch \($target.path)/.populate";
+
+
def git_script:
@sh "fetch_git(){(",
#@sh " export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt",
@@ -118,7 +123,7 @@ def ssh_target:
[
- (if $use_force then null else checktarget_script end),
+ (if $use_force then forcetarget_script else checktarget_script end),
git_script
]
| (if $is_local then . else [ssh_target] end),