From bfc068876c7b52262ca0206d5cc254c86b73ab8f Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 28 Nov 2018 10:40:31 +0100 Subject: [PATCH] fix: remove bogus bash warning when using actions. --- bin/compose-core | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/compose-core b/bin/compose-core index cb14a97..f3725ef 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -3029,7 +3029,8 @@ charm.sanity_checks || die "Sanity checks about charm-store failed. Please corre if [ -z "$is_docker_compose_action" -a "$action" ]; then action_service=${remainder_args[0]} remainder_args=("${remainder_args[@]:1}") - if is_service_action=$(has_service_action "$action_service" "$action"); then + if has_service_action "$action_service" "$action" >/dev/null; then + is_service_action=true { read-0 action_type case "$action_type" in