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
1 changed files with 2 additions and 1 deletions

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}"
}