Skip to content

Commit

Permalink
Update check for if ROS2 already installed
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelthoren committed Jan 2, 2024
1 parent e47745b commit 57b446f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/installation/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ check_command_failed $? "Failed to install dependencies."
ROS_DISTRO=humble

# Check if the ROS2 repository is already added
if ! (dpkg -l | grep -q "ros-$ROS_DISTRO-desktop"); then
if ! (apt list | grep -q "ros-$ROS_DISTRO-desktop"); then
echo "Adding the ROS2 $ROS_DISTRO apt repository..."

# Install ROS2 prerequisites
Expand Down

0 comments on commit 57b446f

Please sign in to comment.