From 3c551c3f567a3342f3168d08eae52a97bc8b2ed6 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 20 Apr 2022 08:33:25 +0300 Subject: a bit of work on name resolving --- bin/enter | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin/enter') diff --git a/bin/enter b/bin/enter index 6575685..625a020 100755 --- a/bin/enter +++ b/bin/enter @@ -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 -- cgit v1.2.3