From 90c6791c6295cc06934aad66f70a7f146cc6cb2a Mon Sep 17 00:00:00 2001 From: Jakub Delicat <109142865+delihus@users.noreply.github.com> Date: Thu, 14 Sep 2023 11:19:50 +0200 Subject: [PATCH] Added source workspace in barshrc --- Dockerfile.hardware | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile.hardware b/Dockerfile.hardware index f16132e..35a5540 100644 --- a/Dockerfile.hardware +++ b/Dockerfile.hardware @@ -101,4 +101,6 @@ COPY flash-firmware.py /usr/bin/ COPY ftdi-eeprom-conf.py /usr/bin/ COPY print-serial-number.py /usr/bin/ -RUN echo $(cat /ros2_ws/src/rosbot_xl/package.xml | grep '' | sed -r 's/.*([0-9]+.[0-9]+.[0-9]+)<\/version>/\1/g') > /version.txt \ No newline at end of file +RUN test -f "/ros2_ws/install/setup.bash" && echo "source /ros2_ws/install/setup.bash" >> /etc/bash.bashrc + +RUN echo $(cat /ros2_ws/src/rosbot_xl/package.xml | grep '' | sed -r 's/.*([0-9]+.[0-9]+.[0-9]+)<\/version>/\1/g') > /version.txt