mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-10 14:03:46 +00:00
Update deploy_create2.sh
This commit is contained in:
parent
3ce0effb21
commit
0bc5bc172c
1 changed files with 5 additions and 3 deletions
|
|
@ -4,11 +4,13 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
# Use the first command line argument, if provided. Otherwise, use the environment variable.
|
||||||
echo "Usage: $0 <JSON_RPC_URL>"
|
JSON_RPC="${1:-$JSON_RPC_URL}"
|
||||||
|
|
||||||
|
if [ -z "$JSON_RPC" ]; then
|
||||||
|
echo "Usage: $0 <JSON_RPC_URL> or set the JSON_RPC_URL environment variable."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
JSON_RPC="$1"
|
|
||||||
|
|
||||||
if ! [ -x "$(command -v curl)" ]; then
|
if ! [ -x "$(command -v curl)" ]; then
|
||||||
echo "Curl must be installed to deploy the create2 proxy" >&2
|
echo "Curl must be installed to deploy the create2 proxy" >&2
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue