Clean up arg handling
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
#!/bin/bash -ex
|
||||
#!/bin/bash -e
|
||||
#
|
||||
# This script is to be run on the leader node
|
||||
#
|
||||
@ -16,19 +16,15 @@ numNodes=
|
||||
# shellcheck source=/dev/null # deployConfig is written by remote-node.sh
|
||||
source deployConfig
|
||||
|
||||
[[ -n $deployMethod ]] || {
|
||||
echo deployMethod empty
|
||||
exit 1
|
||||
}
|
||||
[[ -n $entrypointIp ]] || {
|
||||
echo entrypointIp empty
|
||||
exit 1
|
||||
}
|
||||
[[ -n $numNodes ]] || {
|
||||
echo numNodes empty
|
||||
missing() {
|
||||
echo "Error: $1 not specified"
|
||||
exit 1
|
||||
}
|
||||
|
||||
[[ -n $deployMethod ]] || missing deployMethod
|
||||
[[ -n $entrypointIp ]] || missing entrypointIp
|
||||
[[ -n $numNodes ]] || missing numNodes
|
||||
|
||||
ledgerVerify=true
|
||||
validatorSanity=true
|
||||
while [[ $1 = -o ]]; do
|
||||
|
Reference in New Issue
Block a user