Skip to content

Commit

Permalink
Added support for IPFS Companion, with an ipfs:// URL with a base32 CID
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelg committed Jan 20, 2021
1 parent f376d50 commit 5c031bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ipfs-wormhole.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ EOF
exit 1
fi

CIDBASE32="$($IPFSCMD cid base32 "$TAG")"

EXTRA=""
if [ "$ENCRYPTIONCMD" == "cat" ]; then
# If no encryption was requested, just print out the URL of the IPFS gateway
Expand Down Expand Up @@ -119,6 +121,7 @@ EOF
echo
echo "Retrieve it $RECEIVECMD $EXTRA"
echo
echo "Or, with IPFS Companion: ipfs://$CIDBASE32"

exit 0
;;
Expand Down

0 comments on commit 5c031bb

Please sign in to comment.