diff options
-rwxr-xr-x | bin/enter | 6 | ||||
-rwxr-xr-x | bin/ipns-resolve | 3 |
2 files changed, 7 insertions, 2 deletions
@@ -6,9 +6,11 @@ #entrance="QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH" # End of tests -if [ ! -z "$1" ] +if [ ! -z "$1" ] && [ "$1" == "-n" ] +then + entrance="$(ipns-resolve $2)" +elif [ ! -z "$1" ] then - echo """ #TODO Start from specific zblock """ entrance="$1" else # By default we enter from the latest block diff --git a/bin/ipns-resolve b/bin/ipns-resolve new file mode 100755 index 0000000..7f7478c --- /dev/null +++ b/bin/ipns-resolve @@ -0,0 +1,3 @@ +#!/bin/bash +ipfs name resolve $1 | sed -e 's/\/ipfs\///' + |