Skip to content

Commit

Permalink
Fix dr-logs-robomaker for compse style
Browse files Browse the repository at this point in the history
  • Loading branch information
larsll committed Jan 7, 2024
1 parent 22efcad commit e49d74d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/scripts_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e49d74d

Please sign in to comment.