Skip to content

Commit

Permalink
fix scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Oct 19, 2023
1 parent 5a90a27 commit 97e3808
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/guide-templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
mold: [2.1.0]
env:
RUSTFLAGS: '-C linker=clang -C link-arg=-fuse-ld=/usr/local/bin/mold'
timeout-minutes: 60
timeout-minutes: 90
steps:
- uses: actions/checkout@v3
- uses: arduino/setup-protoc@v2
Expand Down
6 changes: 3 additions & 3 deletions e2e/namada-e2e-test
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
# `make build-release` and `make build-wasm-scripts` on Namada directory in advance
# Run with `namada-e2e-test ${namada_dir}`

set -xe
set -e

NAMADA_DIR=$1
if [ -z "${NAMADA_DIR}" ]
if [ -z "$1" ]
then
echo "ERROR: Namada directory should be given"
exit 1
fi
NAMADA_DIR=$(cd $1 && pwd)
cd $(dirname $0)
HERMES_DIR=${PWD%/e2e*}

Expand Down
13 changes: 6 additions & 7 deletions scripts/setup-namada
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@

set -e


# Get absolute path to Namada directory
SCRIPT_DIR=$(cd $(dirname $0) && pwd)
NAMADA_DIR=$(cd $1 && pwd)
cd $SCRIPT_DIR
if [ -z "${NAMADA_DIR}" ]
if [ -z "$1" ]
then
echo "ERROR: Namada directory should be given"
exit 1
fi
# Get absolute path to Namada directory
SCRIPT_DIR=$(cd $(dirname $0) && pwd)
NAMADA_DIR=$(cd $1 && pwd)
cd $SCRIPT_DIR

HERMES_DIR=${PWD%/scripts*}

Expand Down Expand Up @@ -184,4 +183,4 @@ echo "You can use Hermes with ${HERMES_DIR}/config_for_namada.toml"

echo "You also want to run the following lines:"
echo "export CHAIN_A_ID=${chain_id_a}"
echo "export CHAIN_B_ID=${chain_id_b}"
echo "export CHAIN_B_ID=${chain_id_b}"

0 comments on commit 97e3808

Please sign in to comment.