1
0
mirror of https://github.com/oceanprotocol/barge.git synced 2024-12-02 05:57:21 +01:00

Fix acl address

This commit is contained in:
Javier Cortejoso 2019-01-28 11:45:47 +01:00
parent 1629f1449d
commit 07f2296a4f
No known key found for this signature in database
GPG Key ID: FBEEF3131E39EBCF

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
export BRIZO_ENV_FILE="${DIR}/brizo.env"
@ -53,7 +54,7 @@ COLOR_RESET="\033[00m"
function get_acl_address {
local version="${1:-latest}"
line=$(grep "^${version}=" "${DIR}/${KEEPER_NETWORK_NAME}_acl_contract_addresses.txt")
address="$(line##*=)"
address="${line##*=}"
[ -z "${address}" ] && echo "Cannot determine the ACL Contract Address for ${KEEPER_NETWORK_NAME} version ${version}. Exiting" && exit 1
echo "${address}"
}