From 6c7ec38f31aef934926748cc4a3ac442c8cc9673 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Busch <110477057+jpbusch@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:23:01 +0200 Subject: [PATCH] avoid printing (alternatives 1/1) --- docker/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 2212eb5..5156887 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -91,7 +91,9 @@ RUN echo "set -e" >> $WORKSPACE/.install-dependencies.sh && \ export OS="ubuntu:$(lsb_release -c | awk '{print $2}')" && \ if [[ "$ROS_DISTRO" = "rolling" && "$OS" = "ubuntu:focal" ]]; then export OS="ubuntu:jammy"; fi && \ set -o pipefail && \ - ROS_PACKAGE_PATH=$(pwd):$ROS_PACKAGE_PATH rosdep install --os $OS -y --simulate --from-paths src --ignore-src | tee -a $WORKSPACE/.install-dependencies.sh && \ + ROS_PACKAGE_PATH=$(pwd):$ROS_PACKAGE_PATH rosdep install --os $OS -y --simulate --from-paths src --ignore-src \ + | sed -E "s/'apt-get install -y ([^']+)' \(alternative 1\/1\)/apt-get install -y \1/" \ + | tee -a $WORKSPACE/.install-dependencies.sh && \ chmod +x $WORKSPACE/.install-dependencies.sh && \ rm -rf /var/lib/apt/lists/*