moved repo addition to 94-ros2-src

This commit is contained in:
Andreas Greiner
2022-12-15 09:51:54 +01:00
parent 0d7ffd1bf4
commit cce914b69a
3 changed files with 18 additions and 19 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/with-contenv bash
echo "**** installing ros2 dev environment ****"
if ! dpkg -l | grep gnupg > /dev/null; then
apt-get update && apt-get install -y gnupg
fi
source /etc/lsb-release
[[ ! -f "/etc/apt/sources.list.d/ros2.list" ]] && \
curl -sL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key | apt-key add - && \
echo "deb http://packages.ros.org/ros2/ubuntu ${DISTRIB_CODENAME} main" \
> /etc/apt/sources.list.d/ros2.list