mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-29 08:03:48 +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
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 <JSON_RPC_URL>"
|
||||
# Use the first command line argument, if provided. Otherwise, use the environment variable.
|
||||
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
|
||||
fi
|
||||
JSON_RPC="$1"
|
||||
|
||||
if ! [ -x "$(command -v curl)" ]; then
|
||||
echo "Curl must be installed to deploy the create2 proxy" >&2
|
||||
|
|
|
|||
Loading…
Reference in a new issue