summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-07-27 20:32:03 +0200
committertv <tv@krebsco.de>2017-07-27 20:32:19 +0200
commit912ce78a1f0a7f6c0e0a87c0b633a8089cbbd788 (patch)
tree7430935eae1f4578527061420ff345fac9b23733
parentdc91b856a83a9401741847a93d48b37f1ea05867 (diff)
create target path when using forcev1.2.1
-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),