From c1e2e726c69028f8526ddf3b9d8d91735812be63 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 28 Mar 2019 13:08:11 +0100 Subject: [PATCH] Fix arion exec The service name was still hardcoded. --- src/arion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arion b/src/arion index 41a1dea..75c8ddf 100755 --- a/src/arion +++ b/src/arion @@ -262,7 +262,7 @@ run_exec() { jq < "$docker_compose_yaml" \ --arg serviceName "$serviceName" \ -r \ - '.["x-arion"].serviceInfo.webserver.defaultExec | tostream | .[1] | select(.)' + '.["x-arion"].serviceInfo[$serviceName].defaultExec | tostream | .[1] | select(.)' ) docker-compose -f $docker_compose_yaml exec "$serviceName" "${default_args[@]}" ;;