Fix some logical typos introduced in the rebase
This commit is contained in:
parent
1def383ad1
commit
3d9aff5d23
|
@ -5,7 +5,7 @@ set -eo pipefail
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
TMUX_CMD="${TMUX_CMD:-tmux}"
|
TMUX_CMD="${TMUX_CMD:-tmux}"
|
||||||
USE_TMUX="${USE_TMUX:-no}"
|
USE_TMUX="${USE_TMUX:-yes}"
|
||||||
type "$TMUX_CMD" &>/dev/null || { echo "${TMUX_CMD}" is missing; USE_TMUX="no"; }
|
type "$TMUX_CMD" &>/dev/null || { echo "${TMUX_CMD}" is missing; USE_TMUX="no"; }
|
||||||
|
|
||||||
if [[ "$USE_TMUX" != "no" ]]; then
|
if [[ "$USE_TMUX" != "no" ]]; then
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
# To allow overriding the program names
|
# To allow overriding the program names
|
||||||
|
TMUX_CMD="${TMUX_CMD:-tmux}"
|
||||||
MULTITAIL_CMD="${MULTITAIL_CMD:-multitail}"
|
MULTITAIL_CMD="${MULTITAIL_CMD:-multitail}"
|
||||||
GANACHE_CMD="${GANACHE_CMD:-ganache-cli}"
|
GANACHE_CMD="${GANACHE_CMD:-ganache-cli}"
|
||||||
PROMETHEUS_CMD="${PROMETHEUS_CMD:-prometheus}"
|
PROMETHEUS_CMD="${PROMETHEUS_CMD:-prometheus}"
|
||||||
|
@ -14,22 +15,22 @@ WAIT_GENESIS="${WAIT_GENESIS:-no}"
|
||||||
|
|
||||||
USE_MULTITAIL="${USE_MULTITAIL:-no}"
|
USE_MULTITAIL="${USE_MULTITAIL:-no}"
|
||||||
if [[ "$USE_MULTITAIL" != "no" ]]; then
|
if [[ "$USE_MULTITAIL" != "no" ]]; then
|
||||||
type "$MULTITAIL" &>/dev/null || { echo "${MULTITAIL}" is missing; USE_MULTITAIL="no"; }
|
type "$MULTITAIL_CMD" &>/dev/null || { echo "${MULTITAIL_CMD}" is missing; USE_MULTITAIL="no"; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
USE_TMUX="${USE_TMUX:-yes}"
|
USE_TMUX="${USE_TMUX:-no}"
|
||||||
if [[ "$USE_TMUX" == "yes" ]]; then
|
if [[ "$USE_TMUX" != "no" ]]; then
|
||||||
type "$TMUX" &>/dev/null || { echo "${TMUX}" is missing; USE_TMUX="no"; }
|
type "$TMUX_CMD" &>/dev/null || { echo "${TMUX_CMD}" is missing; USE_TMUX="no"; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
USE_GANACHE="${USE_GANACHE:-yes}"
|
USE_GANACHE="${USE_GANACHE:-yes}"
|
||||||
if [[ "$USE_GANACHE" == "yes" ]]; then
|
if [[ "$USE_GANACHE" == "yes" ]]; then
|
||||||
type "$GANACHE" &>/dev/null || { echo $GANACHE is missing; USE_GANACHE="no"; }
|
type "$GANACHE_CMD" &>/dev/null || { echo $GANACHE_CMD is missing; USE_GANACHE="no"; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
USE_PROMETHEUS="${USE_PROMETHEUS:-yes}"
|
USE_PROMETHEUS="${USE_PROMETHEUS:-yes}"
|
||||||
if [[ "$USE_PROMETHEUS" == "yes" ]]; then
|
if [[ "$USE_PROMETHEUS" == "yes" ]]; then
|
||||||
type "$PROMETHEUS" &>/dev/null || { echo $PROMETHEUS is missing; USE_PROMETHEUS="no"; }
|
type "$PROMETHEUS_CMD" &>/dev/null || { echo $PROMETHEUS_CMD is missing; USE_PROMETHEUS="no"; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
USE_CTAIL="${USE_CTAIL:-yes}"
|
USE_CTAIL="${USE_CTAIL:-yes}"
|
||||||
|
@ -132,10 +133,6 @@ if [ ! -f "${SNAPSHOT_FILE}" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$USE_TMUX" == "yes" ]]; then
|
|
||||||
$TMUX_CMD select-window -t "${TMUX_SESSION_NAME}:sim"
|
|
||||||
fi
|
|
||||||
|
|
||||||
function run_cmd {
|
function run_cmd {
|
||||||
i=$1
|
i=$1
|
||||||
CMD=$2
|
CMD=$2
|
||||||
|
@ -175,6 +172,10 @@ if [ "$USE_GANACHE" != "no" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$USE_TMUX" == "yes" ]]; then
|
||||||
|
$TMUX_CMD select-window -t "${TMUX_SESSION_NAME}:sim"
|
||||||
|
fi
|
||||||
|
|
||||||
# Delete any leftover address files from a previous session
|
# Delete any leftover address files from a previous session
|
||||||
if [ -f "${MASTER_NODE_ADDRESS_FILE}" ]; then
|
if [ -f "${MASTER_NODE_ADDRESS_FILE}" ]; then
|
||||||
rm "${MASTER_NODE_ADDRESS_FILE}"
|
rm "${MASTER_NODE_ADDRESS_FILE}"
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 7064429aa541a7e08c8febd40470b30ae9c7c2e6
|
Subproject commit 858e4ea2edf090980b070d668f0d92ad801d099e
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2ddb255b145e5d2f38b1cddcccbed3db8fe0d960
|
Subproject commit 35eeb035b2b8e1dc770efdf76a0e4c5f369d8a0a
|
Loading…
Reference in New Issue