Skip to content

Commit

Permalink
send-exit works with reverse hybrid (#1555)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne authored Oct 12, 2023
1 parent 4c29fdd commit db2fb40
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion ethd
Original file line number Diff line number Diff line change
Expand Up @@ -1763,7 +1763,24 @@ keys() {
elif [ "${1:-}" = "send-exit" ]; then
var="CL_NODE"
CL_NODE=$(sed -n -e "s/^${var}=\(.*\)/\1/p" ".env" || true)
network_name="$(basename "$(pwd)")_default"
network_name="$(docompose config | awk '
BEGIN {
found_networks=0;
found_default=0;
}
/networks:/ {
found_networks=1;
next;
}
found_networks && /default:/ {
found_default=1;
next;
}
found_default && /^ *name:/ {
print $2;
exit;
}
')"
if ! dodocker image ls --format "{{.Repository}}:{{.Tag}}" | grep -q "vc-utils:local"; then
if ! dpkg-query -W -f='${Status}' docker-ce 2>/dev/null | grep -q "ok installed"; then
dodocker build -t vc-utils:local ./vc-utils
Expand Down

0 comments on commit db2fb40

Please sign in to comment.