From 822c86fae4614b4f3db9c0ce2b8514aecac2c857 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Wed, 22 Jan 2020 18:17:36 -0600 Subject: [PATCH] Use correct bas64 decode option --- assets/out | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/out b/assets/out index c7331f6..7b8da14 100644 --- a/assets/out +++ b/assets/out @@ -61,11 +61,12 @@ rclone_source="local:${local_source_dir}" echo "Source: ${rclone_source}" destinations=$(jq -r '.params.destination[] | @base64' < $payload) -echo "Using encoded destinations: ${destinations}" +echo "Using encoded destinations:" +echo " ${destinations}" for destination in $destinations; do _jq() { - echo ${destination} | base64 --decode | jq -r ${1} + echo ${destination} | base64 -d | jq -r ${1} } rclone_destination=$(_jq '.dir')