summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2018-02-28 14:09:56 +0100
committertv <tv@krebsco.de>2018-02-28 14:09:56 +0100
commitb05e82fe01a3c07e7befb1eeb60c5bc3cc0f39f6 (patch)
tree178efd83e87fb14e876078a68de47b78148296cd /bin
parent7e31dc4906961da4c0fc2ce0fbee3d0a2361fa2d (diff)
populate_pipe: initHEADv2.3.0ni/mastermaster
Diffstat (limited to 'bin')
-rwxr-xr-xbin/populate9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/populate b/bin/populate
index a0d3750..7808fc6 100755
--- a/bin/populate
+++ b/bin/populate
@@ -226,6 +226,15 @@ populate_pass() {(
"$pass_target"
)}
+populate_pipe() {(
+ pipe_target_name=$1
+ pipe_command=$(echo "$2" | jq -r .command)
+
+ result_path=$target_path/$pipe_target_name
+
+ "$pipe_command" | target_shell -c "cat > $(quote "$result_path")"
+)}
+
populate_symlink() {(
symlink_name=$1
symlink_target=$(echo "$2" | jq -r .target)