Browse Source

Fix metadata wrapping for links.json

master
Drew Short 5 years ago
parent
commit
70a0c9993e
  1. 2
      assets/out

2
assets/out

@ -130,7 +130,7 @@ if (( ${#file_links[@]} )); then
# shellcheck disable=2068
metadata=$(printf '{"name": "%s", "value": "%s"},' ${file_links[@]})
metadata="[${metadata::-1}]"
links_json=$( echo -n "{\"links\":[${metadata}]}" | jq -r . )
links_json=$( echo -n "{\"links\":${metadata}}" | jq -r . )
echo "$links_json" > "${TMPDIR}/.rclone_links"
cat "${TMPDIR}/.rclone_links"
jq -n "{

Loading…
Cancel
Save