Add drone cap parameter (#3876)
This commit is contained in:
parent
060793f451
commit
2cd556e43c
@ -7,18 +7,6 @@ here=$(dirname "$0")
|
|||||||
# shellcheck source=multinode-demo/common.sh
|
# shellcheck source=multinode-demo/common.sh
|
||||||
source "$here"/common.sh
|
source "$here"/common.sh
|
||||||
|
|
||||||
usage() {
|
|
||||||
if [[ -n $1 ]]; then
|
|
||||||
echo "$*"
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
echo "usage: $0]"
|
|
||||||
echo
|
|
||||||
echo " Run an airdrop drone"
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
[[ -f "$SOLANA_CONFIG_DIR"/mint-id.json ]] || {
|
[[ -f "$SOLANA_CONFIG_DIR"/mint-id.json ]] || {
|
||||||
echo "$SOLANA_CONFIG_DIR/mint-id.json not found, create it by running:"
|
echo "$SOLANA_CONFIG_DIR/mint-id.json not found, create it by running:"
|
||||||
echo
|
echo
|
||||||
@ -31,6 +19,7 @@ set -ex
|
|||||||
trap 'kill "$pid" && wait "$pid"' INT TERM ERR
|
trap 'kill "$pid" && wait "$pid"' INT TERM ERR
|
||||||
$solana_drone \
|
$solana_drone \
|
||||||
--keypair "$SOLANA_CONFIG_DIR"/mint-id.json \
|
--keypair "$SOLANA_CONFIG_DIR"/mint-id.json \
|
||||||
|
"$@" \
|
||||||
> >($drone_logger) 2>&1 &
|
> >($drone_logger) 2>&1 &
|
||||||
pid=$!
|
pid=$!
|
||||||
wait "$pid"
|
wait "$pid"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user