|
|
@ -133,18 +133,11 @@ if (( ${#file_links[@]} )); then |
|
|
|
echo "Links: ${links_json}" |
|
|
|
mkdir -p "${rclone_source_directory}/.rclone" |
|
|
|
echo "$links_json" > "${rclone_source_directory}/.rclone/links" |
|
|
|
jq -n "{ |
|
|
|
version: { |
|
|
|
build: $( echo -n "${BUILD_ID}" | jq -R .), |
|
|
|
digest: $( echo -n "sha256:$sha256" | jq -R . ), |
|
|
|
}, |
|
|
|
metadata: ${links_json} |
|
|
|
}" >&3 |
|
|
|
else |
|
|
|
jq -n "{ |
|
|
|
version: { |
|
|
|
build: $( echo -n "${BUILD_ID}" | jq -R .), |
|
|
|
digest: $( echo -n "sha256:$sha256" | jq -R . ) |
|
|
|
} |
|
|
|
}" >&3 |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
jq -n "{ |
|
|
|
version: { |
|
|
|
build: $( echo -n "${BUILD_ID}" | jq -R .), |
|
|
|
digest: $( echo -n "sha256:$sha256" | jq -R . ) |
|
|
|
} |
|
|
|
}" >&3 |