From 70a0c9993e5771d58b9b769045a877d54b58ce88 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Fri, 24 Jan 2020 19:27:57 -0600 Subject: [PATCH] Fix metadata wrapping for links.json --- assets/out | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/out b/assets/out index 33373b4..c0a5d44 100644 --- a/assets/out +++ b/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 "{