Skip to content

Commit

Permalink
Update deploy_create2.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kant777 authored Jan 19, 2024
1 parent 3ce0eff commit 0bc5bc1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions geth-poa/util/deploy_create2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0bc5bc1

Please sign in to comment.