Skip to content

Commit

Permalink
empty variable check for mainnet config
Browse files Browse the repository at this point in the history
  • Loading branch information
AFwcxx committed May 23, 2023
1 parent 215c066 commit 25eb5c7
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions ord-index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,19 @@ fi
BITCOIN_CLI_OPTIONS=()
ORD_CLI_OPTIONS=()

if [ $NETWORK = "regtest" ]; then
BITCOIN_CLI_OPTIONS=( --regtest )
ORD_CLI_OPTIONS=( -r )
elif [ $NETWORK = "testnet3" ]; then
BITCOIN_CLI_OPTIONS=( --testnet )
ORD_CLI_OPTIONS=( -t )
elif [ $NETWORK = "" ]; then
BITCOIN_CLI_OPTIONS=()
ORD_CLI_OPTIONS=()
else
echo "Invalid network"
exit
if [ ! -z "${NETWORK}" ]; then
if [ $NETWORK = "regtest" ]; then
BITCOIN_CLI_OPTIONS=( --regtest )
ORD_CLI_OPTIONS=( -r )
elif [ $NETWORK = "testnet3" ]; then
BITCOIN_CLI_OPTIONS=( --testnet )
ORD_CLI_OPTIONS=( -t )
else
echo "Invalid network"
exit
fi
fi


# SETUP END ==


Expand Down

0 comments on commit 25eb5c7

Please sign in to comment.