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")"
|
||||
|
||||
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"; }
|
||||
|
||||
if [[ "$USE_TMUX" != "no" ]]; then
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
set -eo pipefail
|
||||
|
||||
# To allow overriding the program names
|
||||
TMUX_CMD="${TMUX_CMD:-tmux}"
|
||||
MULTITAIL_CMD="${MULTITAIL_CMD:-multitail}"
|
||||
GANACHE_CMD="${GANACHE_CMD:-ganache-cli}"
|
||||
PROMETHEUS_CMD="${PROMETHEUS_CMD:-prometheus}"
|
||||
|
@ -14,22 +15,22 @@ WAIT_GENESIS="${WAIT_GENESIS:-no}"
|
|||
|
||||
USE_MULTITAIL="${USE_MULTITAIL:-no}"
|
||||
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
|
||||
|
||||
USE_TMUX="${USE_TMUX:-yes}"
|
||||
if [[ "$USE_TMUX" == "yes" ]]; then
|
||||
type "$TMUX" &>/dev/null || { echo "${TMUX}" is missing; USE_TMUX="no"; }
|
||||
USE_TMUX="${USE_TMUX:-no}"
|
||||
if [[ "$USE_TMUX" != "no" ]]; then
|
||||
type "$TMUX_CMD" &>/dev/null || { echo "${TMUX_CMD}" is missing; USE_TMUX="no"; }
|
||||
fi
|
||||
|
||||
USE_GANACHE="${USE_GANACHE:-yes}"
|
||||
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
|
||||
|
||||
USE_PROMETHEUS="${USE_PROMETHEUS:-yes}"
|
||||
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
|
||||
|
||||
USE_CTAIL="${USE_CTAIL:-yes}"
|
||||
|
@ -132,10 +133,6 @@ if [ ! -f "${SNAPSHOT_FILE}" ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
if [[ "$USE_TMUX" == "yes" ]]; then
|
||||
$TMUX_CMD select-window -t "${TMUX_SESSION_NAME}:sim"
|
||||
fi
|
||||
|
||||
function run_cmd {
|
||||
i=$1
|
||||
CMD=$2
|
||||
|
@ -175,6 +172,10 @@ if [ "$USE_GANACHE" != "no" ]; then
|
|||
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
|
||||
if [ -f "${MASTER_NODE_ADDRESS_FILE}" ]; then
|
||||
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