From 197e1d9c80fc875e0a393ecf5cf4abf7ead8ddd0 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 17 Dec 2018 11:29:01 +0100 Subject: [PATCH] fix: provide a sensible help when using ``run`` command without any services. --- bin/compose-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/compose-core b/bin/compose-core index 1c85c14..0e4030f 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -3800,7 +3800,7 @@ if [ "$full_init" ]; then fi -if [ "$action" == "run" ]; then +if [ "$action" == "run" -a "${#services_args}" != 0 ]; then charm=$(get_service_charm "${services_args[0]}") || exit 1 metadata=$(charm.metadata "$charm") || exit 1 type="$(printf "%s" "$metadata" | shyaml get-value type 2>/dev/null)" || true