Browse Source

Use correct bas64 decode option

expose_links
Drew Short 5 years ago
parent
commit
822c86fae4
  1. 5
      assets/out

5
assets/out

@ -61,11 +61,12 @@ rclone_source="local:${local_source_dir}"
echo "Source: ${rclone_source}" echo "Source: ${rclone_source}"
destinations=$(jq -r '.params.destination[] | @base64' < $payload) destinations=$(jq -r '.params.destination[] | @base64' < $payload)
echo "Using encoded destinations: ${destinations}"
echo "Using encoded destinations:"
echo " ${destinations}"
for destination in $destinations; do for destination in $destinations; do
_jq() { _jq() {
echo ${destination} | base64 --decode | jq -r ${1}
echo ${destination} | base64 -d | jq -r ${1}
} }
rclone_destination=$(_jq '.dir') rclone_destination=$(_jq '.dir')

Loading…
Cancel
Save