aboutsummaryrefslogtreecommitdiff
path: root/bin/ipns-resolve
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ipns-resolve')
-rwxr-xr-xbin/ipns-resolve27
1 files changed, 0 insertions, 27 deletions
diff --git a/bin/ipns-resolve b/bin/ipns-resolve
deleted file mode 100755
index 6ea3799..0000000
--- a/bin/ipns-resolve
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-PROGRAM="$(basename $0)"
-usage(){
- echo "$PROGRAM - Resolves IPNS to IPFS"
- echo "------------------------------------"
- echo "Usage:"
- echo " $PROGRAM <IPNS>"
- echo ""
- echo "Returns the resolved IPFS CIDv0"
-}
-logit(){
- logthis "<$PROGRAM>" "$1" "$2"
-}
-if [ ! -z $1 ]
-then
- rsld=$(ipfs name resolve $1)
- if [ "$?" != 0 ]
- then
- logit "[ERROR]" "Failed to resolve $1"
- exit 1
- fi
- echo -n $rsld | sed -e 's/\/ipfs\///'
- logit "[INFO]" "Resolved $1 to $rsld"
-else
- usage
-fi
-