From 7826648f63977a02c9b53734630281e65fddb92c Mon Sep 17 00:00:00 2001 From: Drew Short Date: Wed, 22 Jan 2020 18:07:13 -0600 Subject: [PATCH] Fixed missing pipein for json payload --- assets/out | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/out b/assets/out index 8922cf2..a1dc284 100644 --- a/assets/out +++ b/assets/out @@ -60,7 +60,10 @@ echo "sha256:${sha256}" rclone_source="local:${local_source_dir}" echo "Source: ${rclone_source}" -for destination in $(jq -r '.params.destination[] | @base64'); do +destinations=$(jq -r '.params.destination[] | @base64 | join(" ")' < $payload) +echo "Using encoded destinations: ${destinations}" + +for destination in $destinations; do _jq() { echo ${destination} | base64 --decode | jq -r ${1} }