Browse Source

fix: [compose-core] replace rogue ``return`` to ``exit``

master
Valentin Lab 3 weeks ago
parent
commit
a4bc529ce3
  1. 4
      bin/compose-core

4
bin/compose-core

@ -5656,13 +5656,13 @@ else
case "$action" in case "$action" in
ps|up) ps|up)
if [ "${#services_args[@]}" == 0 ]; then if [ "${#services_args[@]}" == 0 ]; then
services_args=($(compose:yml:root:services)) || return 1
services_args=($(compose:yml:root:services)) || exit 1
fi fi
;; ;;
status) status)
services_args=("${state_services[@]}") services_args=("${state_services[@]}")
if [ "${#services_args[@]}" == 0 ] && [ -z "$state_all_services" ]; then if [ "${#services_args[@]}" == 0 ] && [ -z "$state_all_services" ]; then
services_args=($(compose:yml:root:services)) || return 1
services_args=($(compose:yml:root:services)) || exit 1
fi fi
;; ;;
config) config)

Loading…
Cancel
Save