Skip to content

Commit 31f7d98

Browse files
authored
Update _Apt-Repositories.rst (ros2#5867)
Use `$UBUNTU_CODENAME` if available Signed-off-by: Yannis Gerlach <[email protected]>
1 parent 86d8c1a commit 31f7d98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/Installation/_Apt-Repositories.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ Updates to repository configuration will occur automatically when new versions o
1616
1717
$ sudo apt update && sudo apt install curl -y
1818
$ 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}')
19-
$ 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 $VERSION_CODENAME)_all.deb" # If using Ubuntu derivates use $UBUNTU_CODENAME
19+
$ 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)