my favorite tool; makes writing a bash fun for me.
if ! failing_cmd; then
log "this fails!"
return 1
fi
log "this won't log"
} IFS=' ' read -ra routes <<<"${stuff}"
for route in "${routes[@]}"; do
curl localhost:8080/"$route"
done