Browse Source

fix: [compose-core] repair ``compose down``

master
Valentin Lab 3 weeks ago
parent
commit
20041d8025
  1. 22
      bin/compose-core

22
bin/compose-core

@ -5761,19 +5761,21 @@ case "$action" in
;;
esac
if [ -n "$DEBUG" ]; then
Elt "get relation subset"
start=$(time_now)
fi
get_subset_relations "${services_args[@]}" >/dev/null || exit 1
if [ "$action" != "down" ]; then
if [ -n "$DEBUG" ]; then
Elt "get relation subset"
start=$(time_now)
fi
if [ -n "$DEBUG" ]; then
elapsed="$(time_elapsed $start "$(time_now)")" || exit 1
print_info "$(printf "%.3fs" "$elapsed")"
Feedback
fi
get_subset_relations "${services_args[@]}" >/dev/null || exit 1
if [ -n "$DEBUG" ]; then
elapsed="$(time_elapsed $start "$(time_now)")" || exit 1
print_info "$(printf "%.3fs" "$elapsed")"
Feedback
fi
fi
if [ -n "$is_docker_compose_action" ] && [ "${#services_args[@]}" -gt 0 ]; then
services=($(get_master_services "${services_args[@]}")) || exit 1
if [ "$action" == "up" ]; then

Loading…
Cancel
Save