diff options
author | tv <tv@krebsco.de> | 2018-02-28 14:09:56 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-02-28 14:09:56 +0100 |
commit | b05e82fe01a3c07e7befb1eeb60c5bc3cc0f39f6 (patch) | |
tree | 178efd83e87fb14e876078a68de47b78148296cd | |
parent | 7e31dc4906961da4c0fc2ce0fbee3d0a2361fa2d (diff) |
-rwxr-xr-x | bin/populate | 9 |
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) |