diff --git a/scripts/build_local_image.sh b/scripts/build_local_image.sh index 71a8fa0f..aae95bf8 100755 --- a/scripts/build_local_image.sh +++ b/scripts/build_local_image.sh @@ -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 diff --git a/scripts/constants.sh b/scripts/constants.sh index 13e34050..bfb90688 100755 --- a/scripts/constants.sh +++ b/scripts/constants.sh @@ -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" diff --git a/scripts/test.sh b/scripts/test.sh index 6f16e730..c402fedb 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -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 ./... \ No newline at end of file