Skip to content

Commit 58463e3

Browse files
more robust escape for awk double quote (#6288) (#6289)
(cherry picked from commit 4012c6f) Co-authored-by: Adam Setapen <asetapen@gmail.com>
1 parent b5dde7f commit 58463e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/Installation/RHEL-Install-RPMs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Next, download the ``ros2-release`` package and install it:
4545
.. code-block:: console
4646
4747
$ sudo dnf install curl
48-
$ export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F\" '{print $4}')
48+
$ export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F'"' '{print $4}')
4949
$ sudo dnf install "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-release-${ROS_APT_SOURCE_VERSION}-1.noarch.rpm"
5050
5151
The `ros2-release <https://github.com/ros-infrastructure/ros-apt-source/>`_ package provides keys and repo configuration for the various ROS repositories.

source/Installation/_Apt-Repositories.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ Updates to repository configuration will occur automatically when new versions o
1515
.. code-block:: console
1616
1717
$ sudo apt update && sudo apt install curl -y
18-
$ export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F\" '{print $4}')
18+
$ export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F'"' '{print $4}')
1919
$ curl -L -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo ${UBUNTU_CODENAME:-${VERSION_CODENAME}})_all.deb"
2020
$ sudo dpkg -i /tmp/ros2-apt-source.deb

0 commit comments

Comments
 (0)