From 5c346b44e428c0dca47ee78f39cdfd366d4f8426 Mon Sep 17 00:00:00 2001 From: Dastan-glitch Date: Thu, 20 Oct 2022 04:57:43 +0300 Subject: [PATCH] bin/dao: execute run_demo regardless of pwd --- bin/dao/dao-cli/run_demo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dao/dao-cli/run_demo.sh b/bin/dao/dao-cli/run_demo.sh index 8b3e8d7de..ededbcb94 100755 --- a/bin/dao/dao-cli/run_demo.sh +++ b/bin/dao/dao-cli/run_demo.sh @@ -1,5 +1,5 @@ #!/bin/bash -dao="../../../dao" +dao="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && cd ../../.. && pwd )/dao" $dao create 110 110 1 2 addr=$($dao addr | cut -d " " -f 4)