summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)