From e49d74d673c592a27df3219c4b9295e5bc81db6f Mon Sep 17 00:00:00 2001 From: Lars Ludvigsen Date: Sun, 7 Jan 2024 17:03:06 +0100 Subject: [PATCH] Fix dr-logs-robomaker for compse style --- bin/scripts_wrapper.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/scripts_wrapper.sh b/bin/scripts_wrapper.sh index ac6ff4cd..4defb598 100644 --- a/bin/scripts_wrapper.sh +++ b/bin/scripts_wrapper.sh @@ -243,7 +243,13 @@ function dr-find-robomaker { esac done - eval ROBOMAKER_ID=$(docker ps | grep "${OPT_PREFIX}-${DR_RUN_ID}_robomaker.${OPT_REPLICA}" | cut -f1 -d\ | head -1) + if [[ "${DR_DOCKER_STYLE,,}" == "swarm" ]]; + then + eval ROBOMAKER_ID=$(docker ps | grep "${OPT_PREFIX}-${DR_RUN_ID}_robomaker.${OPT_REPLICA}" | cut -f1 -d\ | head -1) + else + eval ROBOMAKER_ID=$(docker ps | grep "${OPT_PREFIX}-${DR_RUN_ID}-robomaker-${OPT_REPLICA}" | cut -f1 -d\ | head -1) + fi + if [ -n "$ROBOMAKER_ID" ]; then echo $ROBOMAKER_ID fi