aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-ipns-resolve
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-ipns-resolve')
-rwxr-xr-xbin/ak-ipns-resolve26
1 files changed, 0 insertions, 26 deletions
diff --git a/bin/ak-ipns-resolve b/bin/ak-ipns-resolve
deleted file mode 100755
index 0dc7697..0000000
--- a/bin/ak-ipns-resolve
+++ /dev/null
@@ -1,26 +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"
-}
-source $AK_LIBDIR/_ak_logit
-
-if [ ! -z $1 ]
-then
- rsld=$(ak-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
-