Skip to content

Commit

Permalink
fix #8 remove set -e from script causing the script to quit early on …
Browse files Browse the repository at this point in the history
…any error
  • Loading branch information
gregor-j committed Jul 17, 2024
1 parent 4b41402 commit 64edc4f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bin/docker_hosts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ BUSYBOX="busybox:latest"
HOSTS_FORMAT_ALIAS='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{range .Aliases}} {{.}}{{end}}{{printf "\n"}}{{end}}'
HOSTS_FORMAT_DNS_NAMES='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{range .DNSNames}} {{.}}{{end}}{{printf "\n"}}{{end}}'

set -e

# display usage information
show_usage() {
echo "Add the IPs and hostnames of all containers started by docker-compose to ${HOSTSFILE}."
Expand Down

0 comments on commit 64edc4f

Please sign in to comment.