From 26a818977dcbb79b65a0b7b578cf71901eba2b35 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Sun, 27 Feb 2022 13:33:49 +0200 Subject: [PATCH] feat: use direct tezos path --- create_test_baker.sh | 2 +- import_ledger_baker.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/create_test_baker.sh b/create_test_baker.sh index bc5f519..024ec3b 100755 --- a/create_test_baker.sh +++ b/create_test_baker.sh @@ -14,4 +14,4 @@ fi account=$1 -tezos-client activate account "$baker" with "./$account.json" +/opt/tezostezos-client activate account "$baker" with "./$account.json" diff --git a/import_ledger_baker.sh b/import_ledger_baker.sh index 9217240..127f398 100755 --- a/import_ledger_baker.sh +++ b/import_ledger_baker.sh @@ -13,7 +13,7 @@ DATA_DIR=./out function add_user_to_root() { echo "adding user to root" - sudo adduser $user root + sudo adduser "$user" root } @@ -30,7 +30,7 @@ function apply_udev() { function import_baker() { echo "importing ledger public key - please approve in ledger" - ledger_output=$(tezos-client list connected ledgers) + ledger_output=$(/opt/tezos/tezos-client list connected ledgers) if [ -z "$ledger_output" ]; then echo "missing ledger output, please check your ledger and run again" @@ -45,12 +45,12 @@ function import_baker() { exit 1 fi - tezos-client import secret key $baker "$ledger_uri" + /opt/tezos/tezos-client import secret key "$baker" "$ledger_uri" } function setup_ledger_to_baker() { echo "approve ledger for baking:" - tezos-client setup ledger to bake for "$baker" + /opt/tezos/tezos-client setup ledger to bake for "$baker" } step apply_udev "udev"