From 49306c23a40eb579ab872b4e7c8237aa03d53294 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 1 Feb 2023 03:34:56 +0200 Subject: Print the key-value pair of the DATA block provided in simple valid JSON format --- bin/profile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bin/profile') diff --git a/bin/profile b/bin/profile index e9a2cb3..0d0025d 100644 --- a/bin/profile +++ b/bin/profile @@ -41,9 +41,7 @@ show(){ if [ ! -z $1 ] then logit "[INFO]" "Working with $1" - echo '"data":"'$1'",' - echo '"'$1'":'$(ipfs cat $1)',' - #ipfs cat $1 + ipfs cat $(echo $(ipfs cat $1) | jq '.ipfs' -r) else echo "No DATA provided" exit 1 -- cgit v1.2.3