Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Add error message when ETH_RPC_URL unset
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmcmichael committed Sep 4, 2020
1 parent 69fdf5e commit 0f497a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libexec/mcd/mcd
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,10 @@ if ! [[ $MCD_INIT ]]; then
mcd-init
fi

if test -z "$ETH_RPC_URL"
then
echo "Please set the ETH_RPC_URL to an ethereum endpoint."
exit 1
fi

"${0##*/}-${1-help}" "${@:2}"

0 comments on commit 0f497a0

Please sign in to comment.