Skip to content

Commit

Permalink
relayer path command on two lines
Browse files Browse the repository at this point in the history
  • Loading branch information
cam-schultz committed Sep 5, 2023
1 parent 4951363 commit ccbc8de
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 4 additions & 2 deletions scripts/build_local_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ set -o nounset
set -o pipefail

# Directory above this script
RELAYER_PATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )"; cd .. && pwd )

RELAYER_PATH=$(
cd "$(dirname "${BASH_SOURCE[0]}")"
cd .. && pwd
)
# Load the constants
source "$RELAYER_PATH"/scripts/constants.sh

Expand Down
5 changes: 4 additions & 1 deletion scripts/constants.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
# Use lower_case variables in the scripts and UPPER_CASE variables for override
# Use the constants.sh for env overrides

RELAYER_PATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )"; cd .. && pwd ) # Directory above this script
RELAYER_PATH=$(
cd "$(dirname "${BASH_SOURCE[0]}")"
cd .. && pwd
)

# Where AWM Relayer binary goes
relayer_path="$RELAYER_PATH/build/awm-relayer"
Expand Down
6 changes: 4 additions & 2 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ set -o nounset
set -o pipefail

# Directory above this script
RELAYER_PATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )"; cd .. && pwd )

RELAYER_PATH=$(
cd "$(dirname "${BASH_SOURCE[0]}")"
cd .. && pwd
)
source "$RELAYER_PATH"/scripts/constants.sh

go test ./...

0 comments on commit ccbc8de

Please sign in to comment.