From e5e058bcd2878c82eb9bbda1977ddaa6bd3e2c83 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Fri, 24 Jan 2020 16:57:09 -0600 Subject: [PATCH] Write out to temp file and cat that --- assets/out | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/out b/assets/out index a377b25..5ca7018 100644 --- a/assets/out +++ b/assets/out @@ -127,9 +127,8 @@ if (( ${#file_links[@]} )); then metadata=$(printf '{"name": "%s", "value": "%s"},' ${file_links[@]}) metadata=${metadata::-1} links_json=$( echo -n "{\"links\":[${metadata}]}" | jq -r . ) - echo "Links: ${links_json}" - mkdir -p "${rclone_source}/.rclone" - echo "$links_json" > "${rclone_source}/.rclone/links" + echo "$links_json" > "${TMPDIR}/.rclone_links" + cat "${TMPDIR}/.rclone_links" fi jq -n "{