From 0fcc3a0e78ae0a1f70ae8ac06e1df295be6c1830 Mon Sep 17 00:00:00 2001 From: bengtlofgren Date: Wed, 13 Sep 2023 15:33:35 +0100 Subject: [PATCH] easier to use --- scripts/setup-namada | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/setup-namada b/scripts/setup-namada index 762c42a290..a30b4fe94e 100755 --- a/scripts/setup-namada +++ b/scripts/setup-namada @@ -6,13 +6,17 @@ set -e -NAMADA_DIR=$1 + +# Get absolute path to Namada directory +SCRIPT_DIR=$(cd $(dirname $0) && pwd) +NAMADA_DIR=$(cd $1 && pwd) +cd $SCRIPT_DIR if [ -z "${NAMADA_DIR}" ] then echo "ERROR: Namada directory should be given" exit 1 fi -cd $(dirname $0) + HERMES_DIR=${PWD%/scripts*} # edit for your environment