aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-02-01 03:34:56 +0200
committerkaotisk <kaotisk@arching-kaos.org>2023-02-01 03:34:56 +0200
commit49306c23a40eb579ab872b4e7c8237aa03d53294 (patch)
tree3730c3bbc93786cffba9a379591f14f9e01b2d58 /bin
parent2614de5d972f2db5568cf18e08798d472d6910e0 (diff)
downloadarching-kaos-tools-49306c23a40eb579ab872b4e7c8237aa03d53294.tar.gz
arching-kaos-tools-49306c23a40eb579ab872b4e7c8237aa03d53294.tar.bz2
arching-kaos-tools-49306c23a40eb579ab872b4e7c8237aa03d53294.zip
Print the key-value pair of the DATA block provided in simple valid JSON format
Diffstat (limited to 'bin')
-rw-r--r--bin/profile4
1 files changed, 1 insertions, 3 deletions
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