From 0daaf2e86b48ca916e89cf4bfecd0b723a2d568c Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 28 Apr 2022 20:37:50 +0200 Subject: [PATCH] !missing json part --- zen/new_file_in_astroport.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/zen/new_file_in_astroport.sh b/zen/new_file_in_astroport.sh index 154a60a..2218e9a 100755 --- a/zen/new_file_in_astroport.sh +++ b/zen/new_file_in_astroport.sh @@ -443,12 +443,15 @@ then "mediakey": "'${MEDIAKEY}'", "ipns": "'${IPNS}'", "tmdb": "'${REFERENCE}'", - "tags": "'${TAGS}'" ' + "tags": "'${TAGS}'" ' > ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json + [[ ${CANON} != "" ]] && echo ', - "_canonical_uri": "'${CANON}'" + "_canonical_uri": "'${CANON}'"' >> ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json + + echo ' } ] -' > ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json +' >> ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json # Will be used by caroussel.html template # CAROUSSEL=$(ipfs add -wq ~/astroport/${TYPE}/${REFERENCE}/${MEDIAKEY}.dragdrop.json | head-n 1)