From b05e82fe01a3c07e7befb1eeb60c5bc3cc0f39f6 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 28 Feb 2018 14:09:56 +0100 Subject: populate_pipe: init --- bin/populate | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- cgit v1.2.3